[fuel-octane] repo-backup fails if /var/www/nailgun/mirrors doesn't exists

Bug #1607834 reported by sryabin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Unassigned

Bug Description

Env:
  6.1
Traceback (most recent call last):
  File "/usr/bin/octane", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/octane/app.py", line 90, in main
    return OctaneApp().run(argv)
  File "/usr/lib/python2.6/site-packages/cliff/app.py", line 215, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.6/site-packages/cliff/app.py", line 280, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.6/site-packages/cliff/command.py", line 50, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/octane/commands/backup.py", line 89, in take_action
    super(BackupRepoCommand, self).take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/octane/commands/backup.py", line 65, in take_action
    backup(parsed_args.path, self.archivators)
  File "/usr/lib/python2.6/site-packages/octane/commands/backup.py", line 41, in backup
    manager(archive).backup()
  File "/usr/lib/python2.6/site-packages/octane/handlers/backup_restore/mirrors.py", line 49, in backup
    self.archive.add(path, os.path.join(self.name, dir_name))
  File "/usr/lib64/python2.6/tarfile.py", line 1971, in add
    tarinfo = self.gettarinfo(name, arcname)
  File "/usr/lib64/python2.6/tarfile.py", line 1840, in gettarinfo
    statres = os.lstat(name)
OSError: [Errno 2] No such file or directory: '/var/www/nailgun/mirrors'

Maybe, affect other MOS releases

Revision history for this message
Ilya Kharin (akscram) wrote :

This feature is not supported for the 6.1 release, we will check other releases for that but before to do that, could you provide some description of your environment, such as amount of clusters, nodes, do you environments have non-default repositories or created local mirrors via fuel-createmirror?

Changed in fuel:
assignee: nobody → Fuel Octane (fuel-octane-team)
milestone: 6.1-updates → next
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
sryabin (sryabin) wrote :

Environemnt have a one cluster, and 98 nodes.

Repositories on node
(
x.x.x.x - is a fuel master ip address
x.x.x.x:8999 - is a haproxy, they proxies requests to another node
x.x.x.x:8080 - nginx with root in /var/www/nailgun/
)
deb http://x.x.x.x:8999/mirrors/mirror.fuel-infra.org/mos/ubuntu/ mos6.1-updates main
deb http://x.x.x.x:8999/ubuntu/ trusty main
deb http://x.x.x.x:8080/2014.2.2-6.1/ubuntu/auxiliary auxiliary main restricted
deb http://x.x.x.x:8999/mirrors/mirror.fuel-infra.org/mos/ubuntu/ mos6.1-holdback main
deb http://x.x.x.x/xxx-extra/contrail-2.22.1-8/ trusty main
deb http://x.x.x.x:8999/percona/ trusty main
deb http://x.x.x.x:8080/2014.2.2-6.1/ubuntu/x86_64 mos6.1 main restricted
deb http://x.x.x.x:8080/plugins/xxx-ui-1.3/repositories/ubuntu /
deb http://x.x.x.x:8080/plugins/xxx-ui-1.3/repositories/ubuntu /
deb http://x.x.x.x/xxx-mos/release/1508a/mos-6.1/ mos6.1 main
deb http://x.x.x.x:8999/mirrors/mirror.fuel-infra.org/mos/ubuntu/ mos6.1-security main
deb http://x.x.x.x:8999/ubuntu/ trusty-updates main
deb http://x.x.x.x:8999/xxx-mos/xx-rsyslog/ trusty main
deb http://x.x.x.x:8999/ubuntu/ trusty-security main

# ls -l /var/www/nailgun/
total 24
drwxr-xr-x 4 root root 4096 Jan 13 2016 2014.2.2-6.1
drwxr-xr-x 2 root root 4096 Jan 13 2016 bootstrap
lrwxrwxrwx 1 root root 36 Jan 13 2016 centos -> /var/www/nailgun/2014.2.2-6.1/centos
drwxr-xr-x 5 root root 4096 Jan 13 2016 docker
drwxr-xr-x 2 root root 4096 Jan 13 2016 dump
drwxr-xr-x 3 root root 4096 Jan 13 2016 plugins
drwxr-xr-x 2 root root 4096 Jan 20 2016 targetimages
lrwxrwxrwx 1 root root 36 Jan 13 2016 ubuntu -> /var/www/nailgun/2014.2.2-6.1/ubuntu

Ilya Kharin (akscram)
Changed in fuel:
status: Incomplete → Confirmed
Revision history for this message
Anton Matveev (amatveev) wrote :

octane specific, moving to won't fix due to shifted priorities

Changed in fuel:
status: Confirmed → Won't Fix
Curtis Hovey (sinzui)
Changed in fuel:
assignee: Registry Administrators (registry) → nobody
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.