Merge ~smoser/cloud-init:fix/ci-allow-deb-older-than-distro into cloud-init:master
| Status: | Merged |
|---|---|
| Merged at revision: | 9ac735bb8c0dec5628a33d907adb3fc02fd902e8 |
| Proposed branch: | ~smoser/cloud-init:fix/ci-allow-deb-older-than-distro |
| Merge into: | cloud-init:master |
| Diff against target: |
17 lines (+3/-3) 1 file modified
tests/cloud_tests/setup_image.py (+3/-3) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Server Team CI bot | continuous-integration | Approve on 2017-11-21 | |
| Joshua Powers (community) | Approve on 2017-11-21 | ||
| cloud-init commiters | 2017-11-21 | Pending | |
|
Review via email:
|
|||
Commit Message
tests: Use apt-get to install a deb so that depends get resolved.
Instead of using 'dpkg -i' to install a package and then running
apt-get -f install, to hope that it would install needed dependencies
we can just use 'apt-get' directly to do the install.
The 'dpkg/apt-get -f' path was a problem if the installed deb was
older than the available deb. In that case it would get replaced.
Description of the Change
https:/
failed because of this (see failure log below).
The reason is that the submitter's branch was older than xenial had a package for. c-i installed the package with 'dpkg -i'. it failed because of the missing json-schema dependency (expected), and then tried to resolve the situation with 'apt-get -f install'.
the apt-get -f install saw there was a newer ubuntu package and just installed that.
this keeps us using the deb that we were expecting to use.
2017-11-21 18:00:31,303 - tests.cloud_tests - INFO - acquiring image for os: xenial
2017-11-21 18:00:31,345 - tests.cloud_tests - DEBUG - updating args for setup with: None
2017-11-21 18:00:31,345 - tests.cloud_tests - INFO - setting up ubuntu-xenial
2017-11-21 18:00:31,397 - tests.cloud_tests - DEBUG - install deb: "cloud-
2017-11-21 18:00:56,366 - tests.cloud_tests - ERROR - stage part: setup func for --deb, install deb encountered error: install deb version "17.1-27-
2017-11-21 18:00:56,367 - tests.cloud_tests - ERROR - traceback:
File "/var/lib/
call()
File "/var/lib/
.format(
2017-11-21 18:00:56,511 - tests.cloud_tests - DEBUG - after setup complete, installed cloud-init version is: 17.1-27-
FAILED: Continuous integration, rev:352ff0776f0
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
FAILED: Ubuntu LTS: Integration
Click here to trigger a rebuild:
https:/
PASSED: Continuous integration, rev:9ac735bb8c0
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild:
https:/


FAILED: Continuous integration, rev:8114424973f 96ce2fbaaa81f22 4ed7e25d3cd923 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 535/
https:/
Executed test runs:
SUCCESS: Checkout
FAILED: Unit & Style Tests
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 535/rebuild
https:/