Skip to content
Snippets Groups Projects
  1. May 13, 2019
    • Benjamin Bertrand's avatar
      Fix users synchronization · d2bb6124
      Benjamin Bertrand authored
      The LDAP_USER_DN was changed in 0.21.0.
      This resulted in more entries returned when searching for users
      and all users being disabled...
      
      We were only looking into "OU=ESS Users" before.
      Inactive users are put under "OU=InActiveUsers" in AD.
      
      JIRA INFRA-1026 #action In Progress
      d2bb6124
  2. May 10, 2019
  3. 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
    • Benjamin Bertrand's avatar
      Improve documentation · e265aec4
      Benjamin Bertrand authored
      e265aec4
  4. May 08, 2019
  5. Apr 25, 2019
  6. Apr 24, 2019
    • Benjamin Bertrand's avatar
      Fix exception when no network selected · 9e500391
      Benjamin Bertrand authored
      1. It's possible to erase the network when creating a host.
      The exception raised was due to the ip_in_range validator
      where a select using the network_id is performed.
      This is now catched to raise a ValidationError.
      2. Add some javascript to remove the is-invalid class on the network and
      IP fields when changing them
      
      JIRA INFRA-810 #action In Progress
      9e500391
  7. Apr 23, 2019
  8. Apr 05, 2019
  9. Apr 03, 2019
  10. Apr 02, 2019
  11. Mar 27, 2019
    • Benjamin Bertrand's avatar
      Version 0.19.2 · bf14cc97
      Benjamin Bertrand authored
      0.19.2
      bf14cc97
    • Benjamin Bertrand's avatar
      Add depends_on field on Task · ebae1b17
      Benjamin Bertrand authored
      Allow to trigger a new core service update only if there is none
      depending on the triggered inventory update.
      
      JIRA INFRA-895
      ebae1b17
    • Benjamin Bertrand's avatar
      Increase timeout for core services update · 27b44173
      Benjamin Bertrand authored
      As the core service update doesn't depend anymore on each other but only
      on the inventory update, 2 can be launched almost at the same time.
      As they can't run in parallel, the second one will only start when the
      first one is done, meaning that it can take more than 180 seconds to
      complete.
      
      Increasing the timeout to 500 seconds should avoid the task to be
      reported as failed when it just took longer to run.
      
      JIRA INFRA-895 #action In Progress
      27b44173
    • Benjamin Bertrand's avatar
      Fix model update in admin interface · 88f54ded
      Benjamin Bertrand authored
      Following exception is raised when trying to update a network from
      flask-admin:
      sqlalchemy.exc.InvalidRequestError: Can't attach instance <User at 0x7f6f0e39ce10>;
      another instance with key (<class 'app.models.User'>, (1,), None) is already present in this session.
      
      1. If we remove the caching of the load_user method, the problem
      disappears.
      2. When updating a Network, this trigger an inventory update in
      before_flush which adds a task to the session. This is when the
      current_user is added to the session and the error raised.
      
      So the problem is linked to the user caching and flask-admin.
      
      The workaround is to remove the user object added by flask-admin to the
      session.
      
      JIRA INFRA-908 #action In Progress
      88f54ded
  12. Mar 18, 2019
    • Benjamin Bertrand's avatar
      Version 0.19.1 · 5b55f0ef
      Benjamin Bertrand authored
      0.19.1
      5b55f0ef
    • Benjamin Bertrand's avatar
      Skip post install for windows VM creation · ef41ee85
      Benjamin Bertrand authored
      Windows VM creation doesn't support post install yet
      - the job that creates the VM returns before the installation is done
      - the post install template is Linux only right now
      
      JIRA INFRA-877
      ef41ee85
    • Benjamin Bertrand's avatar
      Fix excel file download · 87b40eb6
      Benjamin Bertrand authored
      The /status/<job_id> view was only looking in the "default" queue to
      retrieve the job.
      "default" is not used anymore and was replaced by "high", "normal",
      "low".
      The method Job.fetch doesn't look in a specific queue.
      
      JIRA INFRA-890 #action In Progress
      87b40eb6
    • Benjamin Bertrand's avatar
      Removed unused update_inventory function · 8d737f58
      Benjamin Bertrand authored
      launch_awx_job function was updated to trigger an inventory update.
      8d737f58
    • Benjamin Bertrand's avatar
      Version 0.19.0 · 540732dc
      Benjamin Bertrand authored
      0.19.0
      540732dc
    • Benjamin Bertrand's avatar
      Trigger AWX inventory update on database change · e000c2f0
      Benjamin Bertrand authored
      A job running in AWX prevents an inventory sync (of the same
      inventory). This restricts AWX to run only one job at a time as
      the inventory is always updated on launch.
      To prevent this issue, the inventory is updated from AWX when needed.
      
      - The update is triggered on any model modification that is used in the
      inventory (AnsibleGroup, Cname, Domain, Host, Network, NetworkScope)
      - For Interface, the inventory sync is triggered by the
      trigger_core_services function as it depends on it
      - The inventory update job is put on the "high" queue so that it takes
      precedence over all other jobs.
      
      JIRA INFRA-887 #action In Progress
      e000c2f0
    • Benjamin Bertrand's avatar
      Use queues of different priorities · f30a711b
      Benjamin Bertrand authored
      Ensure that the trigger_core_services_update job is always processed
      before the other jobs (low queue).
      
      JIRA INFRA-887
      f30a711b
    • 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
      Fix link to AWX job id for workflow jobs · 0d0471b7
      Benjamin Bertrand authored
      Add awx_resource field to the task table.
      The field is None for local tasks (like excel file creation).
      It's the awx resource used to launch the job otherwise.
      Currently job or workflow_job.
      
      JIRA INFRA-886 #action In Progress
      0d0471b7
    • 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
  13. Mar 07, 2019
Loading