Skip to content
Snippets Groups Projects
  1. Feb 26, 2020
  2. Feb 24, 2020
  3. Feb 03, 2020
  4. Jan 28, 2020
  5. Dec 19, 2019
  6. Dec 18, 2019
  7. Dec 04, 2019
  8. Oct 30, 2019
  9. Sep 18, 2019
  10. Sep 17, 2019
  11. Jun 13, 2019
  12. May 10, 2019
    • Benjamin Bertrand's avatar
      Allow users to delete their host · a6811ba9
      Benjamin Bertrand authored
      - admin can delete any hosts
      - normal users can delete hosts they created
      
      Note that still only admin users can delete hosts via the API (more dangerous
      operation as a script could delete many hosts).
      
      JIRA INFRA-1018 #action In Progress
      a6811ba9
  13. May 09, 2019
    • Benjamin Bertrand's avatar
      Fix IOC indexation · 2b588173
      Benjamin Bertrand authored
      Regression from b9c1b838
      
      Calling utils.trigger_ioc_repository_creation runs launch_task
      which does a db.session.add(task). This raises:
      
      SAWarning: Usage of the 'Session.add()' operation is not currently
      supported within the execution stage of the flush process. Results may
      not be consistent.  Consider using alternative event listeners or
      connection-level operations instead.
      
      SAWarning: Attribute history events accumulated on 1 previously clean
      instances within inner-flush event handlers have been reset, and will
      not result in database updates.
      
      The result is that the host is not added to the elasticsearch index.
      
      We can't trigger the task in after_update/after_insert events.
      Perform the call in the view instead. It's temporary anyway. This should
      be handled by IOC Factory.
      
      JIRA INFRA-1015
      2b588173
  14. May 08, 2019
  15. Apr 25, 2019
  16. Apr 05, 2019
  17. Apr 03, 2019
    • Benjamin Bertrand's avatar
      Code cleaning · c2430b7a
      Benjamin Bertrand authored
      Move trigger_ztp_generation and trigger_vm_creation from tasks.py to
      utils.py.
      The tasks.py module should only include functions used by the worker.
      c2430b7a
  18. Mar 18, 2019
    • Benjamin Bertrand's avatar
      Allow users to create VM/VIOC · 8f209774
      Benjamin Bertrand authored
      - users with access to the network can create VIOC
      - VM can be created only in the ALLOWED_VM_CREATION_DOMAINS
      
      JIRA INFRA-775
      8f209774
    • Benjamin Bertrand's avatar
      Add osversion field to CreateVMForm · dbe8ad11
      Benjamin Bertrand authored
      - vm_osversion is passed as extra variables to the create_vm job
      template
      - vm_cores/vm_memory/vm_disk_size are also passed as extra variables
      instead of saving them as host variables. Saving the variables in the
      host when submitting the form forces to update the inventory before to
      trigger the job to create the VM. This can be avoided using extra
      variables. Furthermore those variables don't need to be in the
      inventory, they can be retrieved as facts.
      
      JIRA INFRA-877
      dbe8ad11
  19. Mar 07, 2019
  20. Mar 05, 2019
    • Benjamin Bertrand's avatar
      Remove tags and add is_ioc field to host table · f331b452
      Benjamin Bertrand authored
      Tags were basically only used for IOCs.
      Tags were linked to the interface (and not the host).
      But for IOC we assume it should always be the main (first) interface.
      
      Using a field on the host table will make it more obvious for users.
      
      Created a IOC dynamic group type, to create a group including all IOCs
      
      JIRA INFRA-862 #action In Progress
      f331b452
  21. Feb 28, 2019
    • Benjamin Bertrand's avatar
      Add view network page · 862e5f8d
      Benjamin Bertrand authored
      JIRA INFRA-860 #action In Progress
      862e5f8d
    • Benjamin Bertrand's avatar
      Clean networks view · e7c1bf6e
      Benjamin Bertrand authored
      No need to use ajax to retrieve the content of simple tables.
      
      For Ansible groups, it takes some time to retrieve the data due to the
      list of hosts for each group to compute. We keep the ajax request so
      that the page is displayed quickly. We might switch to server side
      processing (like for hosts).
      
      JIRA INFRA-860
      e7c1bf6e
    • Benjamin Bertrand's avatar
      Add gateway field to network table · 780a8c1c
      Benjamin Bertrand authored
      Allow to specify the gateway for each network
      
      JIRA INFRA-809
      780a8c1c
  22. Feb 04, 2019
  23. 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
  24. 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
  25. 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
  26. Nov 29, 2018
  27. Nov 28, 2018
  28. Nov 27, 2018
  29. 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
  30. 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
  31. Sep 28, 2018
Loading