Fuel-11.0-community bvt test failed:`Ubuntu bootstrap image wasn't built and activated`

Bug #1643139 reported by Dmitry Kaigarodеsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Critical
Sergii Golovatiuk

Bug Description

Facing with AssertionError on Fuel 11.0-community bvt test:

Traceback (most recent call last):
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/11.0-community.main.ubuntu.bvt_2/fuelweb_test/helpers/decorators.py", line 120, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/11.0-community.main.ubuntu.bvt_2/fuelweb_test/tests/base_test_case.py", line 375, in setup_master
    self.env.setup_environment()
  File "/home/jenkins/workspace/11.0-community.main.ubuntu.bvt_2/fuelweb_test/models/environment.py", line 455, in setup_environment
    self.wait_bootstrap()
  File "/home/jenkins/workspace/11.0-community.main.ubuntu.bvt_2/fuelweb_test/models/environment.py", line 572, in wait_bootstrap
    self.bootstrap_image_check()
  File "/home/jenkins/workspace/11.0-community.main.ubuntu.bvt_2/fuelweb_test/models/environment.py", line 603, in bootstrap_image_check
    'Ubuntu bootstrap image wasn\'t built and activated! '
AssertionError: Ubuntu bootstrap image wasn't built and activated! See logs in /var/log/fuel-bootstrap-image-build.log for details.

https://ci.fuel-infra.org/view/BVT/job/11.0-community.main.ubuntu.bvt_2/95/console

in /var/log/fuel-bootstrap-image-build.log:

Loop device /dev/loop0 seems to be attached. Trying to detach.
Trying to execute command: losetup -d /dev/loop0
Finally: removing temporary file: /tmp/tmpydebKa.fuel-agent-image
[Errno 2] No such file or directory: '/tmp/tmp_BkvPQ.fuel-agent-image/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 387, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 59, in run
    return self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/commands/build.py", line 176, in take_action
    image_uuid, path = bs_image.make_bootstrap(vars(parsed_args))
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/bootstrap_image.py", line 174, in make_bootstrap
    mngr.do_mkbootstrap()
  File "/usr/lib/python2.7/site-packages/fuel_agent/manager.py", line 1064, in do_mkbootstrap
    force_ipv4_file=CONF.force_ipv4_file)
  File "/usr/lib/python2.7/site-packages/fuel_agent/utils/build.py", line 219, in do_post_inst
    'etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'), 'w') as cf:
IOError: [Errno 2] No such file or directory: '/tmp/tmp_BkvPQ.fuel-agent-image/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'
clean up BuildCommand
got an error: [Errno 2] No such file or directory: '/tmp/tmp_BkvPQ.fuel-agent-image/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'
Traceback (most recent call last):
  File "/bin/fuel-bootstrap", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/main.py", line 59, in main
    return FuelBootstrap().run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 267, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 387, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 59, in run
    return self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/commands/build.py", line 176, in take_action
    image_uuid, path = bs_image.make_bootstrap(vars(parsed_args))
  File "/usr/lib/python2.7/site-packages/fuel_bootstrap/utils/bootstrap_image.py", line 174, in make_bootstrap
    mngr.do_mkbootstrap()
  File "/usr/lib/python2.7/site-packages/fuel_agent/manager.py", line 1064, in do_mkbootstrap
    force_ipv4_file=CONF.force_ipv4_file)
  File "/usr/lib/python2.7/site-packages/fuel_agent/utils/build.py", line 219, in do_post_inst
    'etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'), 'w') as cf:
IOError: [Errno 2] No such file or directory: '/tmp/tmp_BkvPQ.fuel-agent-image/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'

Tags: area-ci
Changed in fuel:
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-agent (master)

Fix proposed to branch: master
Review: https://review.openstack.org/399859

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-agent (master)

Reviewed: https://review.openstack.org/399859
Committed: https://git.openstack.org/cgit/openstack/fuel-agent/commit/?id=fee38d0cd90a0a0956f8a7de19dea66510d41f60
Submitter: Jenkins
Branch: master

commit fee38d0cd90a0a0956f8a7de19dea66510d41f60
Author: Sergii Golovatiuk <email address hidden>
Date: Sat Nov 19 13:52:17 2016 +0000

    Revert "Disable cloud-init network auto configuration"

    The directory /etc/cloud/cloud.cfg.d/ doesn't exist. Thus fuel-bootstrap fails as it cannot create file that should be inside of that directory.

    Closes-Bug: 1643139
    This reverts commit b2be687081d03ab93b2ca2da991345334485c32c.

    Change-Id: Ie2bef3a83fb02bf7fe9634ede66998c5cf217f20

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-agent 11.0.0.0rc1

This issue was fixed in the openstack/fuel-agent 11.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.