Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-03-12 Thread urgensherpa
hello there,i setup using devstack ..below is my docker version output
--
redhat@test:~/devstack$ docker version
Client version: 0.7.6
Go version (client): go1.2
Git commit (client): bc3b2ec
Server version: 0.7.6
Git commit (server): bc3b2ec
Go version (server): go1.2
Last stable version: 0.9.0, please update docker
---
I followed a guide from
*http://damithakumarage.wordpress.com/2014/01/31/how-to-setup-openstack-havana-with-docker-driver/*

---
I tagged an image using 

$ docker tag urgensherpa/lamp6 192.168.140.193:5042/lamp6
Below is my 'docker push' commad output.

redhat@test:~/devstack$ docker push 192.168.140.193:5042/lamp6

The push refers to a repository [192.168.140.193:5042/lamp6] (len: 1)
Sending image list
Pushing repository 192.168.140.193:5042/lamp6 (1 tags)
2014/03/11 13:22:03 HTTP code 500 while uploading metadata: invalid
character ‘' looking for beginning of value
--
Please let me know what i need to do thanks 



--
View this message in context: 
http://openstack.10931.n7.nabble.com/Openstack-Nova-Docker-Devstack-with-docker-driver-tp28361p34942.html
Sent from the Developer mailing list archive at Nabble.com.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-03-12 Thread Russell Bryant
Note that devstack is going to break for docker and Nova master right
now.  We're in the middle of moving the docker driver.  In the meantime,
use a rev of Nova before this merge:

https://review.openstack.org/#/c/79740/

Once the following change for the new repo merges, we can update
devstack to reflect the new location:

https://review.openstack.org/#/c/79900/

If you really want to use HEAD of Nova master in the meantime, you can
install the docker driver from here:

https://github.com/russellb/nova-docker

Then configure nova.conf with:

compute_driver=novadocker.virt.docker.driver.DockerDriver

-- 
Russell Bryant

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-03-12 Thread Sean Dague
On 03/12/2014 07:36 AM, Russell Bryant wrote:
 Note that devstack is going to break for docker and Nova master right
 now.  We're in the middle of moving the docker driver.  In the meantime,
 use a rev of Nova before this merge:
 
 https://review.openstack.org/#/c/79740/
 
 Once the following change for the new repo merges, we can update
 devstack to reflect the new location:
 
 https://review.openstack.org/#/c/79900/
 
 If you really want to use HEAD of Nova master in the meantime, you can
 install the docker driver from here:
 
 https://github.com/russellb/nova-docker
 
 Then configure nova.conf with:
 
 compute_driver=novadocker.virt.docker.driver.DockerDriver
 

Honestly, I expect that removing the driver from Nova means we remove it
from devstack. Devstack really tries to minimize being some random
assembly tool for things out of tree. If the driver isn't good enough
for Nova, I don't see why we'd be encouraging people to use it in devstack.

-Sean

-- 
Sean Dague
Samsung Research America
s...@dague.net / sean.da...@samsung.com
http://dague.net



signature.asc
Description: OpenPGP digital signature
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-03-12 Thread Russell Bryant
On 03/12/2014 08:02 AM, Sean Dague wrote:
 On 03/12/2014 07:36 AM, Russell Bryant wrote:
 Note that devstack is going to break for docker and Nova master
 right now.  We're in the middle of moving the docker driver.  In
 the meantime, use a rev of Nova before this merge:
 
 https://review.openstack.org/#/c/79740/
 
 Once the following change for the new repo merges, we can update 
 devstack to reflect the new location:
 
 https://review.openstack.org/#/c/79900/
 
 If you really want to use HEAD of Nova master in the meantime,
 you can install the docker driver from here:
 
 https://github.com/russellb/nova-docker
 
 Then configure nova.conf with:
 
 compute_driver=novadocker.virt.docker.driver.DockerDriver
 
 
 Honestly, I expect that removing the driver from Nova means we
 remove it from devstack. Devstack really tries to minimize being
 some random assembly tool for things out of tree. If the driver
 isn't good enough for Nova, I don't see why we'd be encouraging
 people to use it in devstack.

Yep, given devstack support for plugins, it's not a big deal to have
the devstack support move over to the nova-docker repo.

-- 
Russell Bryant

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-03-12 Thread Paul Czarkowski
There is a bug in the default docker registry.   Set this is your localrc
and it should work

DOCKER_REGISTRY_IMAGE=samalba/docker-registry

On 3/12/14 1:35 AM, urgensherpa sherpa.ur...@outlook.com wrote:

hello there,i setup using devstack ..below is my docker version output
--

redhat@test:~/devstack$ docker version
Client version: 0.7.6
Go version (client): go1.2
Git commit (client): bc3b2ec
Server version: 0.7.6
Git commit (server): bc3b2ec
Go version (server): go1.2
Last stable version: 0.9.0, please update docker
--
-
I followed a guide from
*http://damithakumarage.wordpress.com/2014/01/31/how-to-setup-openstack-ha
vana-with-docker-driver/*

--
-
I tagged an image using

$ docker tag urgensherpa/lamp6 192.168.140.193:5042/lamp6
Below is my 'docker push' commad output.

redhat@test:~/devstack$ docker push 192.168.140.193:5042/lamp6

The push refers to a repository [192.168.140.193:5042/lamp6] (len: 1)
Sending image list
Pushing repository 192.168.140.193:5042/lamp6 (1 tags)
2014/03/11 13:22:03 HTTP code 500 while uploading metadata: invalid
character Œ' looking for beginning of value
--

Please let me know what i need to do thanks



--
View this message in context:
http://openstack.10931.n7.nabble.com/Openstack-Nova-Docker-Devstack-with-d
ocker-driver-tp28361p34942.html
Sent from the Developer mailing list archive at Nabble.com.

___
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] [Openstack][Nova][Docker] Devstack with docker driver

2014-03-11 Thread urgensherpa
Hello!,

i can run docker containers and push it to docker io but i failed to push it
for local glance.and get the same error mentioned here.
Could you please show some more light on  how you resolved it. i started
settingup openstack and docker using devstack. 
here is my localrc 
FLOATING_RANGE=192.168.140.0/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth1
ADMIN_PASSWORD=g
MYSQL_PASSWORD=g
RABBIT_PASSWORD=g
SERVICE_PASSWORD=g
SERVICE_TOKEN=g
SCHEDULER=nova.scheduler.filter_scheduler.FilterScheduler
VIRT_DRIVER=docker
SCREEN_LOGDIR=$DEST/logs/screen
---
the machine im testing is on vmware ubuntu 13.01 with two nics  assuming
eth0 connected to internet and eth1 to local network.
---





--
View this message in context: 
http://openstack.10931.n7.nabble.com/Openstack-Nova-Docker-Devstack-with-docker-driver-tp28361p34845.html
Sent from the Developer mailing list archive at Nabble.com.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-03-11 Thread Daniel Kuffner
Hi,
what is the error reported by docker?
Can you post the docker registry log?
What version of docker do you use?
I assume you use devstack master branch?

thank you,
Daniel

On Tue, Mar 11, 2014 at 1:19 PM, urgensherpa sherpa.ur...@outlook.com wrote:
 Hello!,

 i can run docker containers and push it to docker io but i failed to push it
 for local glance.and get the same error mentioned here.
 Could you please show some more light on  how you resolved it. i started
 settingup openstack and docker using devstack.
 here is my localrc
 FLOATING_RANGE=192.168.140.0/27
 FIXED_RANGE=10.11.12.0/24
 FIXED_NETWORK_SIZE=256
 FLAT_INTERFACE=eth1
 ADMIN_PASSWORD=g
 MYSQL_PASSWORD=g
 RABBIT_PASSWORD=g
 SERVICE_PASSWORD=g
 SERVICE_TOKEN=g
 SCHEDULER=nova.scheduler.filter_scheduler.FilterScheduler
 VIRT_DRIVER=docker
 SCREEN_LOGDIR=$DEST/logs/screen
 ---
 the machine im testing is on vmware ubuntu 13.01 with two nics  assuming
 eth0 connected to internet and eth1 to local network.
 ---





 --
 View this message in context: 
 http://openstack.10931.n7.nabble.com/Openstack-Nova-Docker-Devstack-with-docker-driver-tp28361p34845.html
 Sent from the Developer mailing list archive at Nabble.com.

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-15 Thread Swapnil Kulkarni
Thanks Danilel.

I tried adding the iptable rules but I am still getting error 500 with
docker push

I have added the container logs and iptables output at [1]

[1] http://paste.openstack.org/show/61251/

Best Regards,
Swapnil




On Mon, Jan 13, 2014 at 7:28 PM, Daniel Kuffner daniel.kuff...@gmail.comwrote:

 Hello,

 I just had the same problem today with a openstack installation form
 packstack. The problem was the firewall so I had to open 9292, 35357

 iptables -I INPUT -p tcp --dport 9292 -j ACCEPT
 iptables -I INPUT -p tcp --dport 35357 -j ACCEPT

 Daniel

 On Thu, Jan 9, 2014 at 3:24 PM, Swapnil Kulkarni
 swapnilkulkarni2...@gmail.com wrote:
  Hi Daniel,
 
  I think it was some proxy issue prohibiting from the download. I
 downloaded
  the correct docker-registry.tar.gz and stack.sh completed but with some
  issues remain related to image availability. The docker push is getting
  HTTP code 500 while uploading metadata: invalid character '' looking
 for
  beginning of value error. I did a search for the error and found [1] on
  ask.openstack which states firewall could be an issue, which is not I
 guess
  in my situation. Any ideas?
 
  [1] https://ask.openstack.org/en/question/8320/docker-push-error/
 
  Best Regards,
  Swapnil
 
 
  On Thu, Jan 9, 2014 at 7:37 PM, Daniel Kuffner daniel.kuff...@gmail.com
 
  wrote:
 
  The tar file seem to be corrupt, the tools script downloads it to:
 
  ./files/docker-registry.tar.gz
 
  On Thu, Jan 9, 2014 at 11:17 AM, Swapnil Kulkarni
  swapnilkulkarni2...@gmail.com wrote:
   Hi Daniel,
  
   I removed the existing images and executed
   ./tools/docker/install_docker.sh.
   I am facing new issue related to docker-registry,
  
   Error: exit status 2: tar: This does not look like a tar archive
  
   is the size 945 bytes correct for docker-registry image?
  
  
   Best Regards,
   Swapnil
  
   On Thu, Jan 9, 2014 at 1:35 PM, Daniel Kuffner
   daniel.kuff...@gmail.com
   wrote:
  
   Hi Swapnil,
  
   Looks like the docker-registry image is broken, since it cannot find
   run.sh inside the container.
  
2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh
  
   Maybe you could try to remove and re-import image
  
  
   docker rmi docker-registry
  
   and then execute
  
   ./tools/docker/install_docker.sh
  
   again.
  
  
  
   On Thu, Jan 9, 2014 at 7:42 AM, Swapnil Kulkarni
   swapnilkulkarni2...@gmail.com wrote:
Hi Eric,
   
I tried running the 'docker run' command without -d and it gets
following
error
   
$ sudo docker run -d=false -p 5042:5000 -e
 SETTINGS_FLAVOR=openstack
-e
OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin
 -e
OS_GLANCE_URL=http://127.0.0.1:9292 -e
OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
./docker-registry/run.sh
lxc-start: No such file or directory -
stat(/proc/16438/root/dev//console)
2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh
   
On the other hand,
   
If I run the failing command just after stack.sh fails with -d,  it
works
fine,
   
sudo docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin
 -e
OS_GLANCE_URL=http://127.0.0.1:9292 -e
OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
./docker-registry/run.sh
5b737f8d2282114c1a0cfc4f25bc7c9ef8c5da7e0d8fa7ed9ccee0be81cddafc
   
Best Regards,
Swapnil
   
   
On Wed, Jan 8, 2014 at 8:29 PM, Eric Windisch e...@windisch.us
wrote:
   
On Tue, Jan 7, 2014 at 11:13 PM, Swapnil Kulkarni
swapnilkulkarni2...@gmail.com wrote:
   
Let me know in case I can be of any help getting this resolved.
   
   
Please try running the failing 'docker run' command manually and
without
the '-d' argument. I've been able to reproduce  an error myself,
 but
wish to
confirm that this matches the error you're seeing.
   
Regards,
Eric Windisch
   
___
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
  
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 
  

Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-15 Thread John Eckersberg
Swapnil Kulkarni swapnilkulkarni2...@gmail.com writes:
 Thanks Danilel.

 I tried adding the iptable rules but I am still getting error 500 with
 docker push

 I have added the container logs and iptables output at [1]

 [1] http://paste.openstack.org/show/61251/

 Best Regards,
 Swapnil

Swapnil,

I think this is because your OS_GLANCE_URL and OS_AUTH_URL are set to
127.0.0.1, and that address inside of the docker container is different
than the address outside (e.g. on the host itself).  If you have glance
and keystone running on a non-localhost address, then the traffic inside
of the container would be able to route correctly to the host and reach
the services.

- John

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-15 Thread Eric Windisch


 I think this is because your OS_GLANCE_URL and OS_AUTH_URL are set to
 127.0.0.1, and that address inside of the docker container is different
 than the address outside (e.g. on the host itself).  If you have glance
 and keystone running on a non-localhost address, then the traffic inside
 of the container would be able to route correctly to the host and reach
 the services.


Swapnil, try adding a value for HOST_IP into your localrc, matching your
machine's IP address.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-15 Thread Swapnil Kulkarni
Thanks a ton John! It finally worked!

@Daniel, no firewall update is required.

@Eric, At the same time, I had to update
/home/dstack/devstack/lib/nova_plugins/hypervisor-docker to include sudo
for all docker commands. I think that could be one change we would need in
docker and a documentation update for not using 127.0.0.1. I will create a
bug and will submit a patch with the changes. Do you agree with this?

Best Regards,
Swapnil


On Wed, Jan 15, 2014 at 9:03 PM, Eric Windisch e...@windisch.us wrote:


 I think this is because your OS_GLANCE_URL and OS_AUTH_URL are set to
 127.0.0.1, and that address inside of the docker container is different
 than the address outside (e.g. on the host itself).  If you have glance
 and keystone running on a non-localhost address, then the traffic inside
 of the container would be able to route correctly to the host and reach
 the services.


 Swapnil, try adding a value for HOST_IP into your localrc, matching your
 machine's IP address.

 Regards,
 Eric Windisch

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-15 Thread Eric Windisch


 @Eric, At the same time, I had to update
 /home/dstack/devstack/lib/nova_plugins/hypervisor-docker to include sudo
 for all docker commands. I think that could be one change we would need in
 docker and a documentation update for not using 127.0.0.1. I will create a
 bug and will submit a patch with the changes. Do you agree with this?


You can alternatively add the 'stack' user to the 'docker' group, this is
preferable to using sudo. I agree a bug report should be filed, if it isn't
there already.

I'm thinking that the docker driver can simply warn or exit if HOST_IP is
set to 127.0.0.1 as the error that is received currently is certainty not
obvious enough.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-15 Thread Swapnil Kulkarni
Okay I will give a try adding the stack user to docker group and adding
error message if it fails due to 127.0.0.1.

Also will file a bug report for the same.

Best Regards,
Swapnil


On Wed, Jan 15, 2014 at 9:53 PM, Eric Windisch ewindi...@docker.com wrote:


 @Eric, At the same time, I had to update
 /home/dstack/devstack/lib/nova_plugins/hypervisor-docker to include sudo
 for all docker commands. I think that could be one change we would need in
 docker and a documentation update for not using 127.0.0.1. I will create a
 bug and will submit a patch with the changes. Do you agree with this?


 You can alternatively add the 'stack' user to the 'docker' group, this is
 preferable to using sudo. I agree a bug report should be filed, if it isn't
 there already.

 I'm thinking that the docker driver can simply warn or exit if HOST_IP is
 set to 127.0.0.1 as the error that is received currently is certainty not
 obvious enough.

 --
 Regards,
 Eric Windisch

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-15 Thread John Utz
Hi Eric

Small world dude. :-)

Have a nice day!

johnu

From: Eric Windisch [e...@windisch.us]
Sent: Wednesday, January 15, 2014 7:33 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker 
driver


I think this is because your OS_GLANCE_URL and OS_AUTH_URL are set to
127.0.0.1, and that address inside of the docker container is different
than the address outside (e.g. on the host itself).  If you have glance
and keystone running on a non-localhost address, then the traffic inside
of the container would be able to route correctly to the host and reach
the services.


Swapnil, try adding a value for HOST_IP into your localrc, matching your 
machine's IP address.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-13 Thread Daniel Kuffner
Hello,

I just had the same problem today with a openstack installation form
packstack. The problem was the firewall so I had to open 9292, 35357

iptables -I INPUT -p tcp --dport 9292 -j ACCEPT
iptables -I INPUT -p tcp --dport 35357 -j ACCEPT

Daniel

On Thu, Jan 9, 2014 at 3:24 PM, Swapnil Kulkarni
swapnilkulkarni2...@gmail.com wrote:
 Hi Daniel,

 I think it was some proxy issue prohibiting from the download. I downloaded
 the correct docker-registry.tar.gz and stack.sh completed but with some
 issues remain related to image availability. The docker push is getting
 HTTP code 500 while uploading metadata: invalid character '' looking for
 beginning of value error. I did a search for the error and found [1] on
 ask.openstack which states firewall could be an issue, which is not I guess
 in my situation. Any ideas?

 [1] https://ask.openstack.org/en/question/8320/docker-push-error/

 Best Regards,
 Swapnil


 On Thu, Jan 9, 2014 at 7:37 PM, Daniel Kuffner daniel.kuff...@gmail.com
 wrote:

 The tar file seem to be corrupt, the tools script downloads it to:

 ./files/docker-registry.tar.gz

 On Thu, Jan 9, 2014 at 11:17 AM, Swapnil Kulkarni
 swapnilkulkarni2...@gmail.com wrote:
  Hi Daniel,
 
  I removed the existing images and executed
  ./tools/docker/install_docker.sh.
  I am facing new issue related to docker-registry,
 
  Error: exit status 2: tar: This does not look like a tar archive
 
  is the size 945 bytes correct for docker-registry image?
 
 
  Best Regards,
  Swapnil
 
  On Thu, Jan 9, 2014 at 1:35 PM, Daniel Kuffner
  daniel.kuff...@gmail.com
  wrote:
 
  Hi Swapnil,
 
  Looks like the docker-registry image is broken, since it cannot find
  run.sh inside the container.
 
   2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh
 
  Maybe you could try to remove and re-import image
 
 
  docker rmi docker-registry
 
  and then execute
 
  ./tools/docker/install_docker.sh
 
  again.
 
 
 
  On Thu, Jan 9, 2014 at 7:42 AM, Swapnil Kulkarni
  swapnilkulkarni2...@gmail.com wrote:
   Hi Eric,
  
   I tried running the 'docker run' command without -d and it gets
   following
   error
  
   $ sudo docker run -d=false -p 5042:5000 -e SETTINGS_FLAVOR=openstack
   -e
   OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
   OS_GLANCE_URL=http://127.0.0.1:9292 -e
   OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
   ./docker-registry/run.sh
   lxc-start: No such file or directory -
   stat(/proc/16438/root/dev//console)
   2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh
  
   On the other hand,
  
   If I run the failing command just after stack.sh fails with -d,  it
   works
   fine,
  
   sudo docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
   OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
   OS_GLANCE_URL=http://127.0.0.1:9292 -e
   OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
   ./docker-registry/run.sh
   5b737f8d2282114c1a0cfc4f25bc7c9ef8c5da7e0d8fa7ed9ccee0be81cddafc
  
   Best Regards,
   Swapnil
  
  
   On Wed, Jan 8, 2014 at 8:29 PM, Eric Windisch e...@windisch.us
   wrote:
  
   On Tue, Jan 7, 2014 at 11:13 PM, Swapnil Kulkarni
   swapnilkulkarni2...@gmail.com wrote:
  
   Let me know in case I can be of any help getting this resolved.
  
  
   Please try running the failing 'docker run' command manually and
   without
   the '-d' argument. I've been able to reproduce  an error myself, but
   wish to
   confirm that this matches the error you're seeing.
  
   Regards,
   Eric Windisch
  
   ___
   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
 

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-09 Thread Daniel Kuffner
Hi Swapnil,

Looks like the docker-registry image is broken, since it cannot find
run.sh inside the container.

 2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh

Maybe you could try to remove and re-import image


docker rmi docker-registry

and then execute

./tools/docker/install_docker.sh

again.



On Thu, Jan 9, 2014 at 7:42 AM, Swapnil Kulkarni
swapnilkulkarni2...@gmail.com wrote:
 Hi Eric,

 I tried running the 'docker run' command without -d and it gets following
 error

 $ sudo docker run -d=false -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
 OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
 OS_GLANCE_URL=http://127.0.0.1:9292 -e
 OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
 ./docker-registry/run.sh
 lxc-start: No such file or directory - stat(/proc/16438/root/dev//console)
 2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh

 On the other hand,

 If I run the failing command just after stack.sh fails with -d,  it works
 fine,

 sudo docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
 OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
 OS_GLANCE_URL=http://127.0.0.1:9292 -e
 OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
 ./docker-registry/run.sh
 5b737f8d2282114c1a0cfc4f25bc7c9ef8c5da7e0d8fa7ed9ccee0be81cddafc

 Best Regards,
 Swapnil


 On Wed, Jan 8, 2014 at 8:29 PM, Eric Windisch e...@windisch.us wrote:

 On Tue, Jan 7, 2014 at 11:13 PM, Swapnil Kulkarni
 swapnilkulkarni2...@gmail.com wrote:

 Let me know in case I can be of any help getting this resolved.


 Please try running the failing 'docker run' command manually and without
 the '-d' argument. I've been able to reproduce  an error myself, but wish to
 confirm that this matches the error you're seeing.

 Regards,
 Eric Windisch

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-09 Thread Daniel Kuffner
The tar file seem to be corrupt, the tools script downloads it to:

./files/docker-registry.tar.gz

On Thu, Jan 9, 2014 at 11:17 AM, Swapnil Kulkarni
swapnilkulkarni2...@gmail.com wrote:
 Hi Daniel,

 I removed the existing images and executed ./tools/docker/install_docker.sh.
 I am facing new issue related to docker-registry,

 Error: exit status 2: tar: This does not look like a tar archive

 is the size 945 bytes correct for docker-registry image?


 Best Regards,
 Swapnil

 On Thu, Jan 9, 2014 at 1:35 PM, Daniel Kuffner daniel.kuff...@gmail.com
 wrote:

 Hi Swapnil,

 Looks like the docker-registry image is broken, since it cannot find
 run.sh inside the container.

  2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh

 Maybe you could try to remove and re-import image


 docker rmi docker-registry

 and then execute

 ./tools/docker/install_docker.sh

 again.



 On Thu, Jan 9, 2014 at 7:42 AM, Swapnil Kulkarni
 swapnilkulkarni2...@gmail.com wrote:
  Hi Eric,
 
  I tried running the 'docker run' command without -d and it gets
  following
  error
 
  $ sudo docker run -d=false -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
  OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
  OS_GLANCE_URL=http://127.0.0.1:9292 -e
  OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
  ./docker-registry/run.sh
  lxc-start: No such file or directory -
  stat(/proc/16438/root/dev//console)
  2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh
 
  On the other hand,
 
  If I run the failing command just after stack.sh fails with -d,  it
  works
  fine,
 
  sudo docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
  OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
  OS_GLANCE_URL=http://127.0.0.1:9292 -e
  OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
  ./docker-registry/run.sh
  5b737f8d2282114c1a0cfc4f25bc7c9ef8c5da7e0d8fa7ed9ccee0be81cddafc
 
  Best Regards,
  Swapnil
 
 
  On Wed, Jan 8, 2014 at 8:29 PM, Eric Windisch e...@windisch.us wrote:
 
  On Tue, Jan 7, 2014 at 11:13 PM, Swapnil Kulkarni
  swapnilkulkarni2...@gmail.com wrote:
 
  Let me know in case I can be of any help getting this resolved.
 
 
  Please try running the failing 'docker run' command manually and
  without
  the '-d' argument. I've been able to reproduce  an error myself, but
  wish to
  confirm that this matches the error you're seeing.
 
  Regards,
  Eric Windisch
 
  ___
  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


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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-09 Thread Swapnil Kulkarni
Hi Daniel,

I think it was some proxy issue prohibiting from the download. I downloaded
the correct docker-registry.tar.gz and stack.sh completed but with some
issues remain related to image availability. The docker push is getting *HTTP
code 500 while uploading metadata: invalid character '' looking for
beginning of value* error. I did a search for the error and found [1] on
ask.openstack which states firewall could be an issue, which is not I guess
in my situation. Any ideas?

[1] https://ask.openstack.org/en/question/8320/docker-push-error/

Best Regards,
Swapnil


On Thu, Jan 9, 2014 at 7:37 PM, Daniel Kuffner daniel.kuff...@gmail.comwrote:

 The tar file seem to be corrupt, the tools script downloads it to:

 ./files/docker-registry.tar.gz

 On Thu, Jan 9, 2014 at 11:17 AM, Swapnil Kulkarni
 swapnilkulkarni2...@gmail.com wrote:
  Hi Daniel,
 
  I removed the existing images and executed
 ./tools/docker/install_docker.sh.
  I am facing new issue related to docker-registry,
 
  Error: exit status 2: tar: This does not look like a tar archive
 
  is the size 945 bytes correct for docker-registry image?
 
 
  Best Regards,
  Swapnil
 
  On Thu, Jan 9, 2014 at 1:35 PM, Daniel Kuffner daniel.kuff...@gmail.com
 
  wrote:
 
  Hi Swapnil,
 
  Looks like the docker-registry image is broken, since it cannot find
  run.sh inside the container.
 
   2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh
 
  Maybe you could try to remove and re-import image
 
 
  docker rmi docker-registry
 
  and then execute
 
  ./tools/docker/install_docker.sh
 
  again.
 
 
 
  On Thu, Jan 9, 2014 at 7:42 AM, Swapnil Kulkarni
  swapnilkulkarni2...@gmail.com wrote:
   Hi Eric,
  
   I tried running the 'docker run' command without -d and it gets
   following
   error
  
   $ sudo docker run -d=false -p 5042:5000 -e SETTINGS_FLAVOR=openstack
 -e
   OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
   OS_GLANCE_URL=http://127.0.0.1:9292 -e
   OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
   ./docker-registry/run.sh
   lxc-start: No such file or directory -
   stat(/proc/16438/root/dev//console)
   2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh
  
   On the other hand,
  
   If I run the failing command just after stack.sh fails with -d,  it
   works
   fine,
  
   sudo docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
   OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
   OS_GLANCE_URL=http://127.0.0.1:9292 -e
   OS_AUTH_URL=http://127.0.0.1:35357/v2.0 docker-registry
   ./docker-registry/run.sh
   5b737f8d2282114c1a0cfc4f25bc7c9ef8c5da7e0d8fa7ed9ccee0be81cddafc
  
   Best Regards,
   Swapnil
  
  
   On Wed, Jan 8, 2014 at 8:29 PM, Eric Windisch e...@windisch.us
 wrote:
  
   On Tue, Jan 7, 2014 at 11:13 PM, Swapnil Kulkarni
   swapnilkulkarni2...@gmail.com wrote:
  
   Let me know in case I can be of any help getting this resolved.
  
  
   Please try running the failing 'docker run' command manually and
   without
   the '-d' argument. I've been able to reproduce  an error myself, but
   wish to
   confirm that this matches the error you're seeing.
  
   Regards,
   Eric Windisch
  
   ___
   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
 

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-08 Thread Eric Windisch
On Tue, Jan 7, 2014 at 11:13 PM, Swapnil Kulkarni 
swapnilkulkarni2...@gmail.com wrote:

 Let me know in case I can be of any help getting this resolved.


Please try running the failing 'docker run' command manually and without
the '-d' argument. I've been able to reproduce  an error myself, but wish
to confirm that this matches the error you're seeing.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-08 Thread Swapnil Kulkarni
Hi Eric,

I tried running the 'docker run' command without -d and it gets following
error

$ sudo docker run -d=false -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
OS_GLANCE_URL=http://127.0.0.1:9292 -e OS_AUTH_URL=
http://127.0.0.1:35357/v2.0 docker-registry ./docker-registry/run.sh
lxc-start: No such file or directory - stat(/proc/16438/root/dev//console)
2014/01/09 06:36:15 Unable to locate ./docker-registry/run.sh

On the other hand,

If I run the failing command just after stack.sh fails with -d,  it works
fine,

sudo docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e
OS_USERNAME=admin -e OS_PASSWORD=password -e OS_TENANT_NAME=admin -e
OS_GLANCE_URL=http://127.0.0.1:9292 -e OS_AUTH_URL=
http://127.0.0.1:35357/v2.0 docker-registry ./docker-registry/run.sh
5b737f8d2282114c1a0cfc4f25bc7c9ef8c5da7e0d8fa7ed9ccee0be81cddafc

Best Regards,
Swapnil


On Wed, Jan 8, 2014 at 8:29 PM, Eric Windisch e...@windisch.us wrote:

 On Tue, Jan 7, 2014 at 11:13 PM, Swapnil Kulkarni 
 swapnilkulkarni2...@gmail.com wrote:

 Let me know in case I can be of any help getting this resolved.


 Please try running the failing 'docker run' command manually and without
 the '-d' argument. I've been able to reproduce  an error myself, but wish
 to confirm that this matches the error you're seeing.

 Regards,
 Eric Windisch

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-07 Thread Eric Windisch
On Tue, Jan 7, 2014 at 1:16 AM, Swapnil Kulkarni 
swapnilkulkarni2...@gmail.com wrote:

 Thanks Eric.

 I had already tried the solution presented on ask.openstack.org.


It was worth a shot.

I also found a bug [1] and applied code changes in [2], but to no success.


Ah. I hadn't seen that change before. I agree with Sean's comment, but we
can fix up your change.

I was just curious to know if anyone else is working on this or can provide
 some pointers from development front.


I'm in the process of taking over active development and maintenance of
this driver from Sam Alba.

I'll try and reproduce this myself.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-07 Thread Swapnil Kulkarni
Let me know in case I can be of any help getting this resolved.

Best Regards,
Swapnil


On Wed, Jan 8, 2014 at 12:38 AM, Eric Windisch ewindi...@docker.com wrote:

 On Tue, Jan 7, 2014 at 1:16 AM, Swapnil Kulkarni 
 swapnilkulkarni2...@gmail.com wrote:

 Thanks Eric.

 I had already tried the solution presented on ask.openstack.org.


 It was worth a shot.

 I also found a bug [1] and applied code changes in [2], but to no success.


 Ah. I hadn't seen that change before. I agree with Sean's comment, but we
 can fix up your change.

 I was just curious to know if anyone else is working on this or can
 provide some pointers from development front.


 I'm in the process of taking over active development and maintenance of
 this driver from Sam Alba.

 I'll try and reproduce this myself.

 Regards,
 Eric Windisch

 ___
 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] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-06 Thread Eric Windisch
On Tue, Jan 7, 2014 at 12:27 AM, Swapnil Kulkarni 
swapnilkulkarni2...@gmail.com wrote:

 Hello,

 I am trying to setup devstack with docker driver and facing some issues
 related to docker-registry. Opened an issue with docker team [1] but to no
 response. Has anybody done devstack setup with docker driver?

 [1] https://github.com/dotcloud/docker/issues/3316


Did you run the tools/docker/install_docker.sh script?

Please try the recommended solution at Ask OpenStack:
https://ask.openstack.org/en/question/6633/errors-using-docker-with-openstack/

You might also try manually launching docker-registry, or stopping it if it
is already running.

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-06 Thread Eric Windisch


 I am trying to setup devstack with docker driver and facing some issues
 related to docker-registry. Opened an issue with docker team [1] but to no
 response. Has anybody done devstack setup with docker driver?


Also, I'm sorry you didn't get a speedy response through other means, but
we should take this off the developer list which is not for usage questions
(those usually go to the general list, operator list, or Ask OpenStack)

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


Re: [openstack-dev] [Openstack][Nova][Docker] Devstack with docker driver

2014-01-06 Thread Swapnil Kulkarni
Thanks Eric.

I had already tried the solution presented on ask.openstack.org. I also
found a bug [1] and applied code changes in [2], but to no success.

I was just curious to know if anyone else is working on this or can provide
some pointers from development front.

[1] https://bugs.launchpad.net/devstack/+bug/1257536
[2] https://review.openstack.org/59878

~Swapnil



On Tue, Jan 7, 2014 at 11:26 AM, Eric Windisch e...@windisch.us wrote:


 I am trying to setup devstack with docker driver and facing some issues
 related to docker-registry. Opened an issue with docker team [1] but to no
 response. Has anybody done devstack setup with docker driver?


 Also, I'm sorry you didn't get a speedy response through other means, but
 we should take this off the developer list which is not for usage questions
 (those usually go to the general list, operator list, or Ask OpenStack)

 Regards,
 Eric Windisch


 ___
 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