Skip to content
Branch: master
Commits on Aug 23, 2019
  1. Fixes to Foreman async calls.

    grafuls committed Aug 23, 2019
    When running foreman calls outside of move and rebuild, no event
    loops were existing. Added call to create event loop on all Foreman
    Change-Id: I41e599cb319b14e05a993f9d0115cba9cd4367b1
  2. Make docs more clear on adding new QUADS host.

    sadsfae committed Aug 23, 2019
    Make it easier/clearer for finding steps to integrate new host into
    Change-Id: I31f79d6331570f13b44d157c1334c4db930814a8
  3. Lower python3-aiohttp rpm spec dep.

    sadsfae committed Aug 23, 2019
    We want to have the lowest version in scope for dependencies for the
    oldest version of Fedora we're building RPMs for.
    Change-Id: I874902bdadbfd5ffb9c0babafe58bf05b66bee66
  4. Merge "Asyncio on M&R"

    kambiz-aghaiepour authored and gerritforge-ltd committed Aug 23, 2019
Commits on Aug 22, 2019
  1. Asyncio on M&R

    grafuls committed Aug 2, 2019
    Final draft of asyncio implementation.
    Switch configuration logic has been extracted from move_and_rebuild
    method into switch_config method inside the same file.
    This is due to the non-async nature of the pexpect scripts required.
    Whole of Foreman and Badfish libraries moved to aiohttp, these are
    the ones that make a difference in runtime since now all requests
    to these APIs are no longer locking the code execution and additional
    python calls can be made while waiting for a response from those.
    A badfish_factory method has been added to return an instantiate of
    the class with initialized properties.
    Some async functions are being `await`ed as we some times still need
    to rely on the responses from this coroutines. The reamining ones
    are queued to the loop with create_task.
    On quads-cli we gather all the move_and_rebuild calls that need to
    be done into a list with a partial function which contains the call
    to the method with prepopulated parameters. This list is then passed
    to the loop for execution.
    Same thing is done for switch_config but without running this through
    the async loop.
    Fixes: #256
    Change-Id: Id4a56479eb27994d2a55d8e43845b42c83332fec
Commits on Aug 19, 2019
Commits on Aug 15, 2019
  1. update mongo docs, reference to wp xmlrpc package

    QuantumPosix committed Aug 15, 2019
    we need to update mongo docs and let people know fedora30
    no longer carries python3-wordpress-xmlrpc for some reason so
    it needs to be installed manually prior to installing quads.
    Change-Id: I9ea8b1306aec14dac59be7fed2eb07648ac1d4fd
Commits on Aug 11, 2019
  1. remove old 1.0 options no longer used.

    sadsfae committed Aug 8, 2019
    * remove references to config options that don't apply to 1.1.0.
      - elasticsearch (added back in later release)
      - ansible playbook max proc
      - dreadful php ical nobody uses
    * changed foreman_director_parameter to 'overcloud' as a default.
    Change-Id: Ib421860aa63029452ec7b20ed20be7d0c40ac607
Commits on Aug 9, 2019
  1. Fix for foreman remove_ext_interfaces.

    grafuls committed Aug 8, 2019
    When trying to remove extraneous interfaces from foreman we were
    not passing credentials.
    Also removed a few foreman parameters settings since no longer
    necessary for 1.1.
    Fixes: #279
    Change-Id: I1a3827f4106eb40c92f4734cef8b83d2cefcd452
Commits on Aug 7, 2019
  1. further doc updates, reflect 1.1.0.

    sadsfae committed Aug 7, 2019
    * Better explain how QUADS "runs"
    * Small fix for cron example
    * Remove references to Ansible CMDB, it's not in 1.1.0 yet and will need
    to be re-added
    * Fix table of contents.
    Change-Id: I79519ac32a466689ec67cef43ca04175c912cac8
  2. Update wp/php/fpm alpine container.

    sadsfae committed Aug 7, 2019
    We really should be putting things on PHP 7.x as 5.x is EOL.
    Change-Id: I10e77b6ded7141c3fa6d7db34cdbe14ff6297da6
Commits on Aug 5, 2019
  1. Fixes to progress bar display.

    grafuls committed Aug 5, 2019
    Additionally fixing the setting of an old cloud to validated false
    even after assignment to new cloud is not succesfully completed.
    Change-Id: Ic9ca2e02b09eeaf55ee7ffd47ddc9693d0b22ae1
Commits on Jul 31, 2019
  1. Added warning colour for non completed assignments prog. bar.

    grafuls committed Jul 31, 2019
    Change-Id: Iebdf873c4e55357bdadbd13f8a38d8a7d99030a2
  2. Fixes for progress bar plus performance optimization on regenerate.

    grafuls committed Jul 31, 2019
    Removed call to Foreman rest API from inside loop and retrieving
    IPMI data from existing hosts info at runtime.
    Changed div to span inside progress bar custom html.
    Change-Id: If8334f30c59de56c71d16158e7bdcc79ae2d276b
  3. Replacement for progress bar dependency.

    grafuls committed Jul 31, 2019
    Turns out we have the almighty bootstrap css library included with
    the crusze theme for wordpress. Replacing all progress bars for
    bootstrap default progress bars.
    Change-Id: I55091e0579b2a8424e56643216fd034c5fb92d9f
Commits on Jul 30, 2019
  1. Added logic to display percent of completion at cloud level.

    grafuls committed Jul 29, 2019
    Under cloud assignments wiki we want to display percentage of hosts
    successfully moved. For this we want to check existing current
    schedules per cloud plus the number of hosts which have already been
    moved. We take both counts and calculate a percent out of those.
    Related-to: #277
    Change-Id: Ieb1b3369cfffe617aaf13d8aaa590a8b01fa9f16
Commits on Jul 29, 2019
  1. Fix for rm-host

    grafuls committed Jul 29, 2019
    When removing hosts we were incorrectly looking for host when host
    name was all it was required.
    Change-Id: I231283d0d5b198bde236395fdc83767d829b0e4b
  2. Better error handling on actions in missing hosts

    sadsfae committed Jul 29, 2019
    We need to have better error handling when someone specifies actions
    against a host that does not exist in QUADS.
    fixes: #278
    Change-Id: I46880b6aa3b7c3f0d2f964e9007bf1748caca1a8
  3. Fix for define Host on non default cloud.

    grafuls committed Jul 29, 2019
    When defining new hosts we were missing to populate the cloud field
    after adding default cloud.
    If cloud is not on the data received by the REST API then we assume
    Change-Id: I16cec293f39b2b289ae7147b687696da4fc6e2fe
Commits on Jul 26, 2019
  1. Fix for Current cloud name on ls-schedule.

    grafuls committed Jul 26, 2019
    With the new changes introduced for default_cloud, we were missing
    calling the reference for the cloud name and therefore printing
    the representation of the object.
    Change-Id: If6b54e1085c3c00ef05e3567c623f7f5bf3d8d77
Commits on Jul 25, 2019
  1. Fix for ls-available broken hosts.

    grafuls committed Jul 25, 2019
    When listing available hosts we were not taking into consideration
    broken hosts. Added logic to discriminate those plus general black
    Fixes: #264
    Change-Id: Id33b7922b2964eaf27ddacab61bc5910b2ae4452
Commits on Jul 24, 2019
  1. doc update for hosts/setup.

    sadsfae committed Jul 24, 2019
    * Update network interface documentation to remove old 1.0 references.
    * Add IPMI commands for checking/creating root user if it doesn't exist.
    * Additional doc cleanup.
    * Make note of python3-paramiko for package requirements
    * Swizzy up README descriptions
    * Update features on README to be accurate to 1.1.0 capabilities.
    Change-Id: I3a442e803c9845b2236e39c50dd7807d45881422
Commits on Jul 23, 2019
  1. Fix for ipmi bad credentials.

    grafuls committed Jul 23, 2019
    If the ipmi credentials for root were not properly set on a host
    the whole execution of M&R was being truncated due to not handling
    the exception for the initialization of badfish.
    Also added reboot on exception which if host is off, it would power
    Change-Id: I4e1eeea66e73cc08df8d7311a6f229e87f088e9c
Commits on Jul 22, 2019
  1. Fixes for ls-schedule

    grafuls committed Jul 22, 2019
    We were getting some tracebacks after the latest model changes.
    Change-Id: Ie7b90cd418bed74b4d3030602f1416971e413cd0
  2. Fix for rm-host on future schedules.

    grafuls committed Jul 19, 2019
    When removing a host we were not checking for existing assignments.
    Added logic for warning msg and exit on rm-host for hosts with schedules
    with end dates in the future.
    Change-Id: Idd72b02832801722ba598549dbccf74949683b61
Commits on Jul 18, 2019
  1. Fix for network tests on public vlans.

    grafuls committed Jul 18, 2019
    When doing network validation on an assignemt with a public vlan, we
    want to avoid pinging the tagged interface for the last NIC.
    Fixes: #275
    Change-Id: I1333535c07f06cbfe8a3afb948b0d9c28890b1ea
  2. Fix for default cloud on ls-schedules.

    grafuls committed Jul 18, 2019
    The implementation for default cloud was set to always be cloud01.
    Now default-cloud on define-host is mandatory and populates a new
    field on the Host document.
    Added logic to M&R for hosts to go back to default cloud after an
    assignment is over.
    Replaced a few calls to REST API for mongo resources.
    https: //
    https: //
    Change-Id: I05b8c651c9d933d368f398a7d13daa98f9d99d8a
Commits on Jul 16, 2019
  1. Merge "Try submitting @grafuls patch."

    sadsfae authored and gerritforge-ltd committed Jul 16, 2019
You can’t perform that action at this time.