Skip to content
Snippets Groups Projects
  1. Sep 28, 2018
    • Benjamin Bertrand's avatar
      Do not take into account old deferred tasks · 2ed77eb2
      Benjamin Bertrand authored
      A deferred task will remain deferred forever if the task it depends on
      fails. When checking for waiting tasks, we should ignore deferred tasks
      that are too old.
      "Too old" is currently set to 30 minutes. We shouldn't have tasks that
      take that long. We might want to shorten that even a bit (to not block
      new identical tasks to be run) but if a task failed there is probably
      something to be done.
      
      JIRA INFRA-559 #action In Progress
      2ed77eb2
    • Benjamin Bertrand's avatar
      Add button to delete hosts · f3206d0a
      Benjamin Bertrand authored
      - set cascade to all and delete-orphan to delete interfaces when
        deleting a host
      - button added on the view host page to delete host (admin only)
      
      JIRA INFRA-557 #action In Progress
      f3206d0a
    • Benjamin Bertrand's avatar
      Add button to export items to excel file · 8471ec5b
      Benjamin Bertrand authored
      Retrieving all items from the database takes some time.
      The task is thus handled by the RQ worker.
      We use ajax to periodically monitor the status of the job
      and redirect to the file when ready.
      A progress bar is displayed to let the user see the progress.
      
      The mechanism put in place could be re-used for other use cases.
      
      JIRA INFRA-545 #action In Progress
      8471ec5b
  2. Sep 13, 2018
  3. Aug 21, 2018
  4. Aug 08, 2018
    • Benjamin Bertrand's avatar
      Replace jwt decorators with flask-login · fb3f568e
      Benjamin Bertrand authored
      Using flask-login request_loader, we can validate jwt tokens.
      This allows to use the same decorators for the web UI (using cookies)
      and the API (using JWT) as well as the current_user local proxy.
      fb3f568e
  5. Jul 31, 2018
  6. Jul 27, 2018
  7. Jul 17, 2018
  8. Jul 13, 2018
  9. Jul 12, 2018
    • Benjamin Bertrand's avatar
      Add ansible_group table · 5e76c0b1
      Benjamin Bertrand authored
      - add ansible_groups_hosts_table for many-to-many relationship between
      groups and hosts
      - add new api endpoint /network/groups
      
      JIRA INFRA-412
      5e76c0b1
  10. Jul 11, 2018
  11. 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
  12. Jul 06, 2018
  13. Jul 03, 2018
  14. Jul 02, 2018
  15. May 23, 2018
  16. May 22, 2018
  17. Apr 23, 2018
    • Benjamin Bertrand's avatar
      Add stack_member field to item · ce031db6
      Benjamin Bertrand authored
      This is to be used for stack of switches only
      
      - a stack_member is linked to an host (device_type has to be "Switch")
      - a stack_member is an integer between 0 and 9 (included) or can be None
      - the couple (host_id, stack_member) must be unique
      
      JIRA INFRA-267
      ce031db6
  18. Apr 20, 2018
  19. Apr 10, 2018
  20. Apr 09, 2018
    • Benjamin Bertrand's avatar
      Add attributes favorites page · 3050ce17
      Benjamin Bertrand authored
      - create many-to-many relationships between the user table and
      attributes tables (manufacturer / model / location / status / action)
      - add a checkbox as the first column of the attributes table to add or
      remove an attribute to the favorites
      - add a new page to display the favorite attributes
      
      JIRA INFRA-283
      3050ce17
  21. Apr 06, 2018
  22. Mar 13, 2018
  23. Mar 07, 2018
    • Benjamin Bertrand's avatar
      Accept a list of LDAP groups · 89a98b9b
      Benjamin Bertrand authored
      Not everyone at ICS is part of the 'ICS Employees' AD group.
      We have to accept 'ICS Consultants' as well.
      
      The CSENTRY_LDAP_GROUPS settings now takes a list of groups instead of
      just one.
      
      Remove unused is_member_of_all_groups method.
      
      Fixes INFRA-225
      89a98b9b
  24. Feb 28, 2018
  25. Feb 26, 2018
    • Benjamin Bertrand's avatar
      Fix broken test · 815463b9
      Benjamin Bertrand authored
      Fix error:
      User instance is not bound to a Session; attribute refresh operation cannot proceed
      815463b9
  26. Feb 23, 2018
  27. 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
  28. Feb 09, 2018
    • Benjamin Bertrand's avatar
      Add domain table · f627e2c9
      Benjamin Bertrand authored
      - add domain_id on NetworkScope table to define a default domain
      - add domain_id on Network (default to the Network Scope one)
      
      Fixes INFRA-194
      f627e2c9
  29. Feb 02, 2018
  30. Jan 18, 2018
  31. Jan 16, 2018
  32. Jan 12, 2018
Loading