Postboot Script does not Execute on Node with Public IP

10 views
Skip to first unread message

Divyashri Bhat

unread,
Jun 5, 2014, 5:39:40 PM6/5/14
to geni-...@googlegroups.com, protoge...@googlegroups.com
Hi,

I have a topology with 5 nodes, all of which use customized Ubuntu 12.04 images. Four of these images are the same and one is a customize image with Ubuntu 12.04 and OVS. I tried the following scenarios:

a) Reservation with no Routable Control IP for any of the nodes.
- The slice comes up and I can run experiments as desired.

b) Reservation with Routable Control IP for one OVS VM ONLY
- The slice comes up with a routable control IP as requested and I am also able to login to all VMs. However, it seems like the postboot scripts are not executed. 

The tag I used to request for routable IP:
<emulab:routable_control_ip xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1"/>

The install and execute services for this VM are:

<services>
    <execute command="sudo sh /gimidev/gimibot.sh" shell="sh"/>
    <execute command="sudo wget http://emmy9.casa.umass.edu/GEC-20/fdb.rb -P /root/; sudo wget http://emmy9.casa.umass.edu/GEC-20/learning-switch.rb -P /root/; sudo chmod +x /root/fdb.rb; sudo chmod +x /root/learning-switch.rb" shell="sh"/>
    <install install_path="/" url="http://emmy9.casa.umass.edu/GEC-20/gimidev.tar.gz"/>
 </services>

The script is downloaded onto the VM but has not executed. For making this reservation I used the NorthWestern IG rack through Flack. The RSpec is attached here.

Thank you,
--
Regards,
Divyashri Bhat
Graduate Student
University of Massachusetts, Amherst
gec20learningswitch.rspec

Leigh Stoller

unread,
Jun 9, 2014, 3:54:58 PM6/9/14
to geni-...@googlegroups.com, protoge...@googlegroups.com
> b) Reservation with Routable Control IP for one OVS VM ONLY
> - The slice comes up with a routable control IP as requested and I am also able to login to all VMs. However, it seems like the postboot scripts are not executed.

Hi. Is this sliver still active? If not, can you try it again
and send word when it fails? Be sure to tell us the slice name
and the aggregate on which it fails.

Thanks!
Leigh





Divyashri Bhat

unread,
Jun 9, 2014, 5:13:33 PM6/9/14
to geni-...@googlegroups.com
Hi Leigh,

Thanks for looking into this. I just tried reserving this RSpec again, and I am unable to login to the nodes now.

Slice name: dbhatpostboot 

Rack: Illinois InstaGENI



Leigh





--
GENI Users is a community supported mailing list, so please help by responding to questions you know the answer to.

If this is your first time posting a question to this list, please review http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList
---
You received this message because you are subscribed to the Google Groups "GENI Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geni-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leigh Stoller

unread,
Jun 9, 2014, 5:20:10 PM6/9/14
to geni-...@googlegroups.com
> Thanks for looking into this. I just tried reserving this RSpec again, and I am unable to login to the nodes now.

The nodes all look fine and I can log into them. What does
ssh -v show?

Leigh





Divyashri Bhat

unread,
Jun 9, 2014, 5:26:53 PM6/9/14
to geni-...@googlegroups.com
For node b, here is what I get.

dhcp89-69-124:~ dbhat$ ssh -v  -i ~/.ssh/id_geni_ssh_rsa db...@pc1.instageni.illinois.edu -p 34619

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011

debug1: Reading configuration data /etc/ssh_config

debug1: /etc/ssh_config line 20: Applying options for *

debug1: Connecting to pc1.instageni.illinois.edu [72.36.65.20] port 34619.

debug1: Connection established.

debug1: identity file /Users/dbhat/.ssh/id_geni_ssh_rsa type 1

debug1: identity file /Users/dbhat/.ssh/id_geni_ssh_rsa-cert type -1

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_6.2

debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1

debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH_5*

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: server->client aes128-ctr hmac-md5 none

debug1: kex: client->server aes128-ctr hmac-md5 none

debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent

debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

debug1: SSH2_MSG_KEX_DH_GEX_INIT sent

debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

debug1: Server host key: RSA e7:d1:f8:a9:25:9e:07:54:c2:f5:d3:8c:55:f9:34:d8

debug1: Host '[pc1.instageni.illinois.edu]:34619' is known and matches the RSA host key.

debug1: Found key in /Users/dbhat/.ssh/known_hosts:41

debug1: ssh_rsa_verify: signature correct

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug1: Roaming not allowed by server

debug1: SSH2_MSG_SERVICE_REQUEST sent

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug1: Authentications that can continue: publickey,password

debug1: Next authentication method: publickey

debug1: Offering RSA public key: /Users/dbhat/.ssh/id_geni_ssh_rsa

debug1: Authentications that can continue: publickey,password

debug1: Next authentication method: password

db...@pc1.instageni.illinois.edu's password: 

debug1: Authentications that can continue: publickey,password

Permission denied, please try again.


It asks me for a password but does not accept the one I input.


Thanks,




Leigh





--
GENI Users is a community supported mailing list, so please help by responding to questions you know the answer to.

If this is your first time posting a question to this list, please review http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList
---
You received this message because you are subscribed to the Google Groups "GENI Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geni-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leigh Stoller

unread,
Jun 9, 2014, 5:32:23 PM6/9/14
to geni-...@googlegroups.com
> For node b, here is what I get.

This is an ongoing problem with our images; you user directory
was left behind when you created the image, and then when you
bring it up again, the uid mapping has changed and the home dir
is not owned by the correct user.

The best advice right now is to recreate the image, but before
you do it, remove your home directory.

Leigh





Divyashri Bhat

unread,
Jun 9, 2014, 6:53:30 PM6/9/14
to geni-...@googlegroups.com
Thanks Leigh. I will create another image.

Should I clear out the contents of my user directory before taking a snapshot or should I delete the directory entirely?

The reason I am asking this question is because I have tried deleting the directory entirely and was unable to login to my node later.



Leigh





--
GENI Users is a community supported mailing list, so please help by responding to questions you know the answer to.

If this is your first time posting a question to this list, please review http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList
---
You received this message because you are subscribed to the Google Groups "GENI Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geni-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leigh Stoller

unread,
Jun 9, 2014, 7:01:40 PM6/9/14
to geni-...@googlegroups.com
> Should I clear out the contents of my user directory before taking a snapshot or should I delete the directory entirely?

Delete entirely.

> The reason I am asking this question is because I have tried deleting the directory entirely and was unable to login to my node later.

Yep, this is a problem, but if you take the current image and
load it up on another node, remove you home dir, and then take
a snapshot, you should be fine.

Leigh





Reply all
Reply to author
Forward
0 new messages