Hi, everyone,
I just pushed the final (i.e. non-snapshot) version of cloud-init 0.7.0 to F18 and rawhide, which fixes a great deal of compatibility bugs, makes most of the plugins work properly, and allows one to configure the users on the system using instance user-data a lot better than previous version. There is one fairly important change to be aware of relative to F17's version: this version allows you to change the user that it creates at startup time (and in fact add even more), so it is recommended to *not* pre-create a user when you build the image. What do we need to do to remove that from Fedora's cloud image kickstart before we start building test images?
I'd like to push this to F16 and F17 as well to replace the horribly broken versions that those operating systems shipped with. Any objections?
How about EPEL? This update fixes so many issues that I believe it's worth it.
-- Garrett Holmstrom
On Thu, Oct 11, 2012 at 09:46:24AM -0700, Garrett Holmstrom wrote:
more), so it is recommended to *not* pre-create a user when you build the image. What do we need to do to remove that from Fedora's cloud image kickstart before we start building test images?
Apply for commit access to
https://admin.fedoraproject.org/accounts/group/view/gitcloud-kickstarts
and/or send patches to one of the people with commit access.
I'd like to push this to F16 and F17 as well to replace the horribly broken versions that those operating systems shipped with. Any objections?
Sounds good.
On Thu, Oct 11, 2012 at 01:02:59PM -0400, Matthew Miller wrote:
more), so it is recommended to *not* pre-create a user when you build the image. What do we need to do to remove that from Fedora's cloud image kickstart before we start building test images?
Apply for commit access to https://admin.fedoraproject.org/accounts/group/view/gitcloud-kickstarts and/or send patches to one of the people with commit access.
And/or tell me "hey do this". :)
Hi Garrett,
I just pushed the final (i.e. non-snapshot) version of cloud-init 0.7.0 to F18 and rawhide, which fixes a great deal of compatibility bugs, makes most of the plugins work properly, and allows one to configure the users on the system using instance user-data a lot better than previous version.
Thanks for this update!
How about EPEL? This update fixes so many issues that I believe it's worth it.
I've prepared a scratch el6 build http://koji.fedoraproject.org/koji/taskinfo?taskID=4582433 (simple merge master to el6 branch https://github.com/apevec/cloud-init-el6 ) Let's test this first before pushing to epel.
Cheers, Alan
On 10/11/2012 06:46 PM, Garrett Holmstrom wrote:
Hi, everyone,
I'd like to push this to F16 and F17 as well to replace the horribly broken versions that those operating systems shipped with. Any objections?
Hi Garrett,
I made simple test: 1) Install F17 AMI 2) Upgraded cloud-init to 0.7.0-1.fc18 3) Change user name in /etc/cloud/cloud.cfg 4) remove /var/lib/cloud/instances/* /var/lib/cloud/instance 5) Reboot
The major issue is: ssh key for new user is not set (new user is created, however there is no /home/<newuser>/.ssh folder), it is impossible to login via ssh. Unfortunatelly I can't find any failures in /var/log/cloud-init.log, looks like it is not performed at all.
Am I missing something?
Hello,
just tried to test cloud-init-0.7.0-1 from Alan's build from http://koji.fedoraproject.org/koji/taskinfo?taskID=4582433 on quite vanilla image of SLC6 which is a derivate of EL6.
it seems they use argparse, which was added in Python in 2.7. On EL6 (and 5 as well I guess) there is python-argparse in separate package so it should go to dependencies of cloud-init 0.7.
Starting cloud-init: Traceback (most recent call last):^M^M File "/usr/bin/cloud-init", line 24, in <module>^M^M import argparse^M^M ImportError: No module named argparse^M^M
Cheers, Tomas
_______________________________________ From: cloud-bounces@lists.fedoraproject.org [cloud-bounces@lists.fedoraproject.org] on behalf of Vitaly Kuznetsov [vkuznets@redhat.com] Sent: 12 October 2012 11:27 To: Garrett Holmstrom Cc: Milan Kovacik; Alan Pevec; Fedora Cloud SIG; Pádraig Brady Subject: Re: cloud-init update
On 10/11/2012 06:46 PM, Garrett Holmstrom wrote:
Hi, everyone,
I'd like to push this to F16 and F17 as well to replace the horribly broken versions that those operating systems shipped with. Any objections?
Hi Garrett,
I made simple test: 1) Install F17 AMI 2) Upgraded cloud-init to 0.7.0-1.fc18 3) Change user name in /etc/cloud/cloud.cfg 4) remove /var/lib/cloud/instances/* /var/lib/cloud/instance 5) Reboot
The major issue is: ssh key for new user is not set (new user is created, however there is no /home/<newuser>/.ssh folder), it is impossible to login via ssh. Unfortunatelly I can't find any failures in /var/log/cloud-init.log, looks like it is not performed at all.
Am I missing something?
-- Vitaly Kuznetsov, Cloud QE _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
On 2012-10-17 13:35, Tomas Karasek wrote:
just tried to test cloud-init-0.7.0-1 from Alan's build from http://koji.fedoraproject.org/koji/taskinfo?taskID=4582433 on quite vanilla image of SLC6 which is a derivate of EL6.
it seems they use argparse, which was added in Python in 2.7. On EL6 (and 5 as well I guess) there is python-argparse in separate package so it should go to dependencies of cloud-init 0.7.
Starting cloud-init: Traceback (most recent call last):^M^M File "/usr/bin/cloud-init", line 24, in <module>^M^M import argparse^M^M ImportError: No module named argparse^M^M
Sounds like the el6 build should depend on python-argparse, then. That's already in EPEL.
I'm still trying to reproduce Vitaly's login problem and not having much luck. :-\ Is anyone else able to do so and post logs? (/var/log/cloud-init.log)
On 10/18/2012 05:47 AM, Garrett Holmstrom wrote:
I'm still trying to reproduce Vitaly's login problem and not having much luck. :-\ Is anyone else able to do so and post logs? (/var/log/cloud-init.log)
Hi Garrett,
I can provide you with my exact sequence, maybe it is buggy itself? :)
1) Create F17 instance (ami-2ea50247, us-east-1 for example) 2) Login, update cloud-init: sudo yum -y install http://kojipkgs.fedoraproject.org//packages/cloud-init/0.7.0/1.fc18/noarch/c... 3) Change user in /etc/clouf/cloud.cfg: users: - ec2-user2 4) remove old instance data: sudo rm -rf /var/lib/cloud/instance /var/lib//cloud/instances/i-* /var/log/cloud-init.log 5) reboot the instance 6) try to login using new 'ec2-user2' user and fail :( 7) login with old ec2-user and examine /var/log/cloud-init.log 8) ec2-user2 is created, but it has no /home/ec2-user2/.ssh/authorized_keys file
On Thu, Oct 18, 2012 at 12:28 AM, Vitaly Kuznetsov vkuznets@redhat.com wrote:
On 10/18/2012 05:47 AM, Garrett Holmstrom wrote:
I'm still trying to reproduce Vitaly's login problem and not having much luck. :-\ Is anyone else able to do so and post logs? (/var/log/cloud-init.log)
Hi Garrett,
I can provide you with my exact sequence, maybe it is buggy itself? :)
- Create F17 instance (ami-2ea50247, us-east-1 for example)
- Login, update cloud-init:
sudo yum -y install http://kojipkgs.fedoraproject.org//packages/cloud-init/0.7.0/1.fc18/noarch/c... 3) Change user in /etc/clouf/cloud.cfg: users:
- ec2-user2
- remove old instance data:
sudo rm -rf /var/lib/cloud/instance /var/lib//cloud/instances/i-* /var/log/cloud-init.log 5) reboot the instance 6) try to login using new 'ec2-user2' user and fail :( 7) login with old ec2-user and examine /var/log/cloud-init.log 8) ec2-user2 is created, but it has no /home/ec2-user2/.ssh/authorized_keys file
Ah, now I see what's going on! Thanks for the info. It seems that the ssh plugin simply ignores everyone that isn't the default user. :-\ Perhaps it should grab the first user when the default one isn't there. I'll check with upstream and try to come up with a fix.
The stock ec2-user user works when you delete its account before you create the image, right?
-- Garrett Holmstrom
On 10/26/2012 02:20 AM, Garrett Holmstrom wrote:
Ah, now I see what's going on! Thanks for the info. It seems that the ssh plugin simply ignores everyone that isn't the default user. :-\ Perhaps it should grab the first user when the default one isn't there. I'll check with upstream and try to come up with a fix.
The stock ec2-user user works when you delete its account before you create the image, right?
Yea, you're right, just checked for default ec2-user and it works. But this behaviour looks weird, I think it should add ssh access to all or at least the first user in the list if default user isn't there.
On Wed, Oct 17, 2012 at 10:35 PM, Tomas Karasek tomas.karasek@cern.ch wrote:
it seems they use argparse, which was added in Python in 2.7. On EL6 (and 5 as well I guess) there is python-argparse in separate package so it should go to dependencies of cloud-init 0.7.
added https://github.com/apevec/cloud-init-el6/commit/144d24c949600c9ef5521c830c0c... new scratch build http://koji.fedoraproject.org/koji/taskinfo?taskID=4604354
Hi Alan, thanks for the build! I will test.
Will you attempt make a build for EL5 as well?
On Thu, Oct 18, 2012 at 5:28 PM, Alan Pevec apevec@gmail.com wrote:
On Wed, Oct 17, 2012 at 10:35 PM, Tomas Karasek tomas.karasek@cern.ch wrote:
it seems they use argparse, which was added in Python in 2.7. On EL6 (and 5 as well I guess) there is python-argparse in separate package so it should go to dependencies of cloud-init 0.7.
added https://github.com/apevec/cloud-init-el6/commit/144d24c949600c9ef5521c830c0c... new scratch build http://koji.fedoraproject.org/koji/taskinfo?taskID=4604354 _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
2012/10/23 Tomas Karasek tomas.karasek@cern.ch:
Will you attempt make a build for EL5 as well?
Not right now, I want EL6 working first, but if anyone is interested please try and send patches! In the meantime, 0.7.1 was released upstream and I've updated the scratch build (untested):
http://repos.fedorapeople.org/repos/openstack/cloud-init/epel-6/cloud-init-0...
Cheers, Alan
Hey Alan, I tested 0.7.1 rpm build on SLC6 (EL6) built from https://github.com/apevec/cloud-init-el6.git and it's working alright. It's finally downloading the public keys.
I will test on SLC5 (EL5) in near future.
Thanks for quick update of the spec and patches!
Cheers, Tomas
On Wed, Nov 14, 2012 at 11:42 PM, Alan Pevec apevec@gmail.com wrote:
2012/10/23 Tomas Karasek tomas.karasek@cern.ch:
Will you attempt make a build for EL5 as well?
Not right now, I want EL6 working first, but if anyone is interested please try and send patches! In the meantime, 0.7.1 was released upstream and I've updated the scratch build (untested):
http://repos.fedorapeople.org/repos/openstack/cloud-init/epel-6/cloud-init-0...
Cheers, Alan _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
On Thu, Nov 15, 2012 at 2:59 AM, Tomas Karasek tomas.karasek@cern.ch wrote:
Hey Alan, I tested 0.7.1 rpm build on SLC6 (EL6) built from https://github.com/apevec/cloud-init-el6.git and it's working alright. It's finally downloading the public keys.
Nice! I will try this in Fedora as well.
Hey Alan, I tested 0.7.1 rpm build on SLC6 (EL6) built from https://github.com/apevec/cloud-init-el6.git and it's working alright. It's finally downloading the public keys.
I guess you were not using default cfg, can you share it? Vitaly and JoeV found issues with default cfg, so I've updated along with two minor rhel-specific adjustments:
* Fri Nov 16 2012 Alan Pevec apevec@redhat.com 0.7.1-2 - define default user (Joe VLcek) - set distro to rhel in default config - adjust logger call for older util-linux
New scratch build is http://repos.fedorapeople.org/repos/openstack/cloud-init/epel-6/cloud-init-0...
Cheers, Alan
I guess you were not using default cfg, can you share it?
we use root as a default user and the only modification I did was sed -i 's|^disable_root: 1|disable_root: 0|' /etc/cloud/cloud.cfg
I refer to
commit bbb042f5ddb547724f849d3d8e30db23db333a7a Author: Alan Pevec apevec@redhat.com Date: Wed Nov 14 23:08:25 2012 +0100
Update to 0.7.1
of https://github.com/apevec/cloud-init-el6.git
I'll check the new cfg.
On Fri, Nov 16, 2012 at 4:45 PM, Alan Pevec apevec@gmail.com wrote:
Hey Alan, I tested 0.7.1 rpm build on SLC6 (EL6) built from https://github.com/apevec/cloud-init-el6.git and it's working alright. It's finally downloading the public keys.
I guess you were not using default cfg, can you share it? Vitaly and JoeV found issues with default cfg, so I've updated along with two minor rhel-specific adjustments:
- Fri Nov 16 2012 Alan Pevec apevec@redhat.com 0.7.1-2
- define default user (Joe VLcek)
- set distro to rhel in default config
- adjust logger call for older util-linux
New scratch build is
http://repos.fedorapeople.org/repos/openstack/cloud-init/epel-6/cloud-init-0...
Cheers, Alan _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
On 11/16/2012 11:09 AM, Tomas Karasek wrote:
I guess you were not using default cfg, can you share it?
we use root as a default user and the only modification I did was sed -i 's|^disable_root: 1|disable_root: 0|' /etc/cloud/cloud.cfg
I refer to
commit bbb042f5ddb547724f849d3d8e30db23db333a7a Author: Alan Pevec <apevec@redhat.com mailto:apevec@redhat.com> Date: Wed Nov 14 23:08:25 2012 +0100
Update to 0.7.1
of https://github.com/apevec/cloud-init-el6.git
I'll check the new cfg.
On Fri, Nov 16, 2012 at 4:45 PM, Alan Pevec <apevec@gmail.com mailto:apevec@gmail.com> wrote:
> Hey Alan, I tested 0.7.1 rpm build on SLC6 (EL6) built from > https://github.com/apevec/cloud-init-el6.git > and it's working alright. It's finally downloading the public keys. I guess you were not using default cfg, can you share it? Vitaly and JoeV found issues with default cfg, so I've updated along with two minor rhel-specific adjustments: * Fri Nov 16 2012 Alan Pevec <apevec@redhat.com <mailto:apevec@redhat.com>> 0.7.1-2 - define default user (Joe VLcek) - set distro to rhel in default config - adjust logger call for older util-linux New scratch build is http://repos.fedorapeople.org/repos/openstack/cloud-init/epel-6/cloud-init-0.7.1-2.el6.noarch.rpm Cheers, Alan _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org <mailto:cloud@lists.fedoraproject.org> https://admin.fedoraproject.org/mailman/listinfo/cloud
cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
Thank you Tomas,
Having the default action be to use the root user for RHEL raises security issues. So we specify a default user and leave the disable_root: 1.
Joe
Hi Alan and all, I was testing cloud-init 0.7.1 on slc5 (rhel5) and run into some problems: - there's no prettytable for python26. I wrote a dummy class that can be used instead. Not sure if that's a good way to resolve this. - some dependency issues in the specfile
Take a look on the patch and let me know what you think.
Tomas
On Mon, Nov 19, 2012 at 5:08 PM, jvlcek jvlcek@redhat.com wrote:
On 11/16/2012 11:09 AM, Tomas Karasek wrote:
I guess you were not using default cfg, can you share it?
we use root as a default user and the only modification I did was sed -i 's|^disable_root: 1|disable_root: 0|' /etc/cloud/cloud.cfg
I refer to
commit bbb042f5ddb547724f849d3d8e30db23db333a7a Author: Alan Pevec <apevec@redhat.com mailto:apevec@redhat.com> Date: Wed Nov 14 23:08:25 2012 +0100
Update to 0.7.1
of https://github.com/apevec/cloud-init-el6.git
I'll check the new cfg.
On Fri, Nov 16, 2012 at 4:45 PM, Alan Pevec <apevec@gmail.com mailto:apevec@gmail.com> wrote:
> Hey Alan, I tested 0.7.1 rpm build on SLC6 (EL6) built from > https://github.com/apevec/cloud-init-el6.git > and it's working alright. It's finally downloading the public keys. I guess you were not using default cfg, can you share it? Vitaly and JoeV found issues with default cfg, so I've updated along with two minor rhel-specific adjustments: * Fri Nov 16 2012 Alan Pevec <apevec@redhat.com <mailto:apevec@redhat.com>> 0.7.1-2 - define default user (Joe VLcek) - set distro to rhel in default config - adjust logger call for older util-linux New scratch build is
http://repos.fedorapeople.org/repos/openstack/cloud-init/epel-6/cloud-init-0...
Cheers, Alan _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org <mailto:cloud@lists.fedoraproject.org> https://admin.fedoraproject.org/mailman/listinfo/cloud
cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
Thank you Tomas,
Having the default action be to use the root user for RHEL raises security issues. So we specify a default user and leave the disable_root: 1.
Joe
On 10/18/2012 11:28 AM, Alan Pevec wrote:
On Wed, Oct 17, 2012 at 10:35 PM, Tomas Karasek tomas.karasek@cern.ch wrote:
it seems they use argparse, which was added in Python in 2.7. On EL6 (and 5 as well I guess) there is python-argparse in separate package so it should go to dependencies of cloud-init 0.7.
added https://github.com/apevec/cloud-init-el6/commit/144d24c949600c9ef5521c830c0c... new scratch build http://koji.fedoraproject.org/koji/taskinfo?taskID=4604354 _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
High level testing has succeeded on RHEVm.
Passed a simple script to a launching VM via user data to cloud-init, which successfully executed the script.
Will now test on vsphere.
Joe
cloud@lists.stg.fedoraproject.org