Re: [openstack-dev] [Fuel] Symlinks to new stuff for OpenStack Patching

2014-06-16 Thread Matthew Mosesohn
Hi Igor,

The repo directory its is too large to fit in a docker container and
work reliably. It is just a symlink inside the repo storage container
from host:/var/www/nailgun to repo-container:/repo. This /repo folder
is shared out to containers, such as nginx, and then symlinks are
created for each subdir in /var/www/nailgun. If you need more links
without rebuilding your environment, you would need to symbolically
link your new repository from /var/www/nailgun/newlink to
/var/lib/docker/devicemapper/mnt/$(docker nspect -f='{{.ID}}'
__containername__)/rootfs/repo. (replace __containername__ with the
container you're trying to work on).

I hope this helps.

-Matthew

On Sun, Jun 15, 2014 at 2:32 PM, Igor Kalnitsky ikalnit...@mirantis.com wrote:
 Hello fuelers,

 I'm working on openstack patching for 5.1 and I've met some problems.
 The problems I've met are in repos/puppets installing process.

 The problems are almost same, so I describe it on repos example.

 The repos data are located in /var/www/nailgun. This folder is mounted
 as /repo into Nginx container. Nginx container has own /var/www/nailgun
 with various symlinks to /repo's content.

 So the problem is that we need to add symlinks to newest repos in Nginx
 container. How this problem should be solved? Should our fuel-upgrade
 script add these symlinks or we'll ship new docker containers which
 already contain these symlinks?


 Thanks,
 Igor

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Fuel] Symlinks to new stuff for OpenStack Patching

2014-06-16 Thread Evgeniy L
Hi,

In case of OpenStack patching you don't need to create any symlinks and
mount new directories, you can just create new subdirectory in
/var/www/nailgun with specific version of openstack, like /var/www/nailgun/
5.0.1. And then use it as a repository path for new OpenStack releases.


On Mon, Jun 16, 2014 at 12:50 PM, Matthew Mosesohn mmoses...@mirantis.com
wrote:

 Hi Igor,

 The repo directory its is too large to fit in a docker container and
 work reliably. It is just a symlink inside the repo storage container
 from host:/var/www/nailgun to repo-container:/repo. This /repo folder
 is shared out to containers, such as nginx, and then symlinks are
 created for each subdir in /var/www/nailgun. If you need more links
 without rebuilding your environment, you would need to symbolically
 link your new repository from /var/www/nailgun/newlink to
 /var/lib/docker/devicemapper/mnt/$(docker nspect -f='{{.ID}}'
 __containername__)/rootfs/repo. (replace __containername__ with the
 container you're trying to work on).

 I hope this helps.

 -Matthew

 On Sun, Jun 15, 2014 at 2:32 PM, Igor Kalnitsky ikalnit...@mirantis.com
 wrote:
  Hello fuelers,
 
  I'm working on openstack patching for 5.1 and I've met some problems.
  The problems I've met are in repos/puppets installing process.
 
  The problems are almost same, so I describe it on repos example.
 
  The repos data are located in /var/www/nailgun. This folder is mounted
  as /repo into Nginx container. Nginx container has own /var/www/nailgun
  with various symlinks to /repo's content.
 
  So the problem is that we need to add symlinks to newest repos in Nginx
  container. How this problem should be solved? Should our fuel-upgrade
  script add these symlinks or we'll ship new docker containers which
  already contain these symlinks?
 
 
  Thanks,
  Igor
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Fuel] Symlinks to new stuff for OpenStack Patching

2014-06-16 Thread Igor Kalnitsky
Hello,

Thanks for input, guys. So we need to prepare infrastructure for that.

- Igor


On Mon, Jun 16, 2014 at 12:23 PM, Evgeniy L e...@mirantis.com wrote:

 Hi,

 In case of OpenStack patching you don't need to create any symlinks and
 mount new directories, you can just create new subdirectory in
 /var/www/nailgun with specific version of openstack, like
 /var/www/nailgun/5.0.1. And then use it as a repository path for new
 OpenStack releases.


 On Mon, Jun 16, 2014 at 12:50 PM, Matthew Mosesohn mmoses...@mirantis.com
  wrote:

 Hi Igor,

 The repo directory its is too large to fit in a docker container and
 work reliably. It is just a symlink inside the repo storage container
 from host:/var/www/nailgun to repo-container:/repo. This /repo folder
 is shared out to containers, such as nginx, and then symlinks are
 created for each subdir in /var/www/nailgun. If you need more links
 without rebuilding your environment, you would need to symbolically
 link your new repository from /var/www/nailgun/newlink to
 /var/lib/docker/devicemapper/mnt/$(docker nspect -f='{{.ID}}'
 __containername__)/rootfs/repo. (replace __containername__ with the
 container you're trying to work on).

 I hope this helps.

 -Matthew

 On Sun, Jun 15, 2014 at 2:32 PM, Igor Kalnitsky ikalnit...@mirantis.com
 wrote:
  Hello fuelers,
 
  I'm working on openstack patching for 5.1 and I've met some problems.
  The problems I've met are in repos/puppets installing process.
 
  The problems are almost same, so I describe it on repos example.
 
  The repos data are located in /var/www/nailgun. This folder is mounted
  as /repo into Nginx container. Nginx container has own /var/www/nailgun
  with various symlinks to /repo's content.
 
  So the problem is that we need to add symlinks to newest repos in Nginx
  container. How this problem should be solved? Should our fuel-upgrade
  script add these symlinks or we'll ship new docker containers which
  already contain these symlinks?
 
 
  Thanks,
  Igor
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev