Skip to content
Snippets Groups Projects
  1. Feb 04, 2019
  2. Jan 28, 2019
    • Benjamin Bertrand's avatar
      Add post install job after VM creation · 4d2dcf3b
      Benjamin Bertrand authored
      After a VM or VIOC creation, a post install job can be triggered.
      The job to trigger is based on the domain and defined in the
      AWX_POST_INSTALL dictionary.
      
      Admin users have the option to skip this post job if required.
      
      The job is enqueued in RQ with a dependency on the creation job.
      So it's only triggered after successful completion of the first one.
      
      JIRA INFRA-769
      4d2dcf3b
  3. Jan 23, 2019
    • Benjamin Bertrand's avatar
      Pass disk size in inventory when creating VM · 0d575840
      Benjamin Bertrand authored
      - Disk size added to the create VM form
      - Disk size saved to proxmox_disk_space variable in host inventory
      
      The proxmox_disk_space variable is used by the Ansible job when creating
      the machine.
      
      JIRA INFRA-759 #action In Progress
      0d575840
  4. Dec 10, 2018
    • Benjamin Bertrand's avatar
      Fix extra interface creation · 1f85ed9f
      Benjamin Bertrand authored
      Not sure why a tuple instead of network was returned...
      There must have been a comma at the end of the line due to copy/pasting
      and black converted that to a tuple.
      
      Added a test for the create_interface function.
      
      JIRA INFRA-697 #action In Progress
      1f85ed9f
  5. Nov 29, 2018
  6. Nov 28, 2018
  7. Nov 27, 2018
  8. Nov 06, 2018
    • Benjamin Bertrand's avatar
      Make host/interface/cname unique · fc7ac34a
      Benjamin Bertrand authored
      - Host names are unique (no 2 hosts with same name)
      - A host name shall not conflict with a cname or interface (if not main
      interface)
      - Interface names are unique (no 2 interfaces with same name)
      - An interface shall not conflict with a cname or host (if not assigned
      host)
      - cnames are only unique by domain (2 cnames can have the same name if
      different domains)
      - A cname shall not conflict with a host or interface
      - An interface has to be linked to a host
      
      Validation is implemented at the model level.
      Some is also implemented at the form level as it gives nicer feedback,
      but not all as it's a bit more complex when it requires check on several fields.
      
      JIRA INFRA-245
      fc7ac34a
    • Benjamin Bertrand's avatar
      Make mac addresses unique by interface · 16ac3272
      Benjamin Bertrand authored
      - mac is now a column in the interface table (no link to the mac table)
      - mac column is unique (can't have 2 interfaces with the same mac)
      - the mac table is kept for the items
      
      JIRA INFRA-639
      16ac3272
  9. Oct 11, 2018
    • Benjamin Bertrand's avatar
      Implement server side processing for network hosts · 3a2d05fa
      Benjamin Bertrand authored
      - switch to server side processing to retrieve network hosts
        (the table started to be bigger and takes time to load)
      - add full text search using elasticsearch
      
      Note that only the first IP is displayed in the host table (all
      interfaces were displayed before). Search can be performed on any
      interfaces.
      
      JIRA INFRA-595 #action In Progress
      3a2d05fa
    • Benjamin Bertrand's avatar
      Explicitely update relationships · 82542c83
      Benjamin Bertrand authored
      This is to ensure that when editing an object it is properly
      re-indexed.
      
      JIRA INFRA-575
      82542c83
  10. Sep 28, 2018
  11. Sep 21, 2018
  12. Aug 01, 2018
  13. Jul 31, 2018
  14. Jul 17, 2018
  15. Jul 12, 2018
  16. Jul 11, 2018
  17. Jul 09, 2018
    • Benjamin Bertrand's avatar
      Use sqlalchemy events hook to trigger tasks · d9516a98
      Benjamin Bertrand authored
      Use the before_flush hook to trigger the core services update.
      It's much nicer than having to call a method in several places.
      
      The core services update is triggered on creation/modification/deletion
      of an Interface.
      
      In the before_flush we can manipulate the session (add objects) but we
      shouldn't call commit.
      The db.session.commit() was removed from the launch_task method.
      d9516a98
  18. Jul 06, 2018
  19. Jul 02, 2018
  20. Jun 28, 2018
  21. May 25, 2018
  22. May 24, 2018
  23. May 23, 2018
  24. Apr 27, 2018
  25. Apr 23, 2018
  26. Apr 20, 2018
  27. Apr 10, 2018
  28. Apr 06, 2018
  29. Mar 16, 2018
    • Benjamin Bertrand's avatar
      Fix default available IPs · 03daacce
      Benjamin Bertrand authored
      We should reserve 10 addresses at the beginning and 5 at the end.
      Meaning for a /24 network, we should start at 11 and end at 249.
      03daacce
  30. Feb 12, 2018
    • Benjamin Bertrand's avatar
      Allow admin to create interface outside range · a653f0d9
      Benjamin Bertrand authored
      The network range defines the IP to be allocated.
      This is to reserve some specific addresses (for gateway for example).
      
      An admin user should be able to define an interface outside the network
      range.
      
      The IP address select field was replaced with a string field
      (initialized to the first available IP).
      
      Fixes INFRA-200
      a653f0d9
  31. Feb 09, 2018
  32. Dec 22, 2017
  33. Dec 20, 2017
    • Benjamin Bertrand's avatar
      Fix some permissions · e5051986
      Benjamin Bertrand authored
      - Only admin should be able to create networks
      - Deleting an interface should require at least create group (should
        that be restricted to admin?)
      e5051986
Loading