Upgrade Fuel to 5.1.1 fails with IOError can't find version.yaml

Bug #1403985 reported by Rob Neff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Undecided
Fuel Python (Deprecated)

Bug Description

Ran upgrade.sh as root. It failed pretty quickly. See below.

[root@a3cloudzilla tmp]# ./upgrade.sh --password admin
2014-12-18 18:30:56 ERROR 24270 (cli) [Errno 2] No such file or directory: '/etc/fuel/version.yaml'
Traceback (most recent call last):
  File "/var/tmp/upgrade/site-packages/fuel_upgrade/cli.py", line 172, in main
    run_upgrade(parse_args(sys.argv[1:]))
  File "/var/tmp/upgrade/site-packages/fuel_upgrade/cli.py", line 145, in run_upgrade
    config = build_config(args.src, args.password)
  File "/var/tmp/upgrade/site-packages/fuel_upgrade/config.py", line 90, in build_config
    return Config(config(update_path, admin_password))
  File "/var/tmp/upgrade/site-packages/fuel_upgrade/config.py", line 236, in config
    current_version = get_version_from_config(current_fuel_version_path)
  File "/var/tmp/upgrade/site-packages/fuel_upgrade/config.py", line 80, in get_version_from_config
    return read_yaml_config(path)['VERSION']['release']
  File "/var/tmp/upgrade/site-packages/fuel_upgrade/config.py", line 72, in read_yaml_config
    return yaml.load(open(path, 'r'))
IOError: [Errno 2] No such file or directory: '/etc/fuel/version.yaml'

[root@a3cloudzilla etc]# find / -name version.yaml
/var/tmp/upgrade/config/version.yaml

[root@a3cloudzilla etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.7G 9.2G 23M 100% /
tmpfs 7.8G 392K 7.8G 1% /dev/shm
/dev/sdb1 739M 73M 629M 11% /boot
/dev/sda3 98G 9.9G 83G 11% /usr
/dev/sdb2 458G 193G 242G 45% /var

Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 5.1.2
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

Well, the reason is obvious: the /etc/fuel/version.yaml is absent on the master node.

Rob, did you perform some unusual actions or something?

Revision history for this message
Rob Neff (rob-neff) wrote :

My (really stupid) mistake. We are running Fuel in a VM and I was running the job on the host instead of the Fuel VM.

Please close the bug.

 It would be nice if you had a better error message like "Fuel does not appear to be installed."

Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/6.0.x
Changed in fuel:
milestone: 5.1.2 → 6.1
status: New → Invalid
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.