cloudmesh / cloudmesh1

http://cloudmesh.org
Apache License 2.0
14 stars 12 forks source link

Override remote openrc.sh location for `cm-iu user fetch` #203

Open badmutex opened 9 years ago

badmutex commented 9 years ago

Currently the path to the openrc.sh is hardcoded as ~/.cloudmesh/clouds/juno/openrc.sh. In some cases the user may have this file in a difference location or named differently.

One option is for the user to symlink the file to the expected location, but this requires accessing india and making a change.

Alternatively, if there was a --remote-openrc flag this could override the default location

$ cm-iu user fetch --remote-openrc=.cloudmesh/clouds/juno/openrc-12345.sh
laszewsk commented 9 years ago

why would it be different. did we not decide with koji that it shuld be uniform? can you check with koji.

On Apr 15, 2015, at 10:44 AM, badi notifications@github.com wrote:

Currently the path to the openrc.sh is hardcoded as ~/.cloudmesh/clouds/juno/openrc.sh. In some cases the user may have this file in a difference location or named differently.

One option is for the user to symlink the file to the expected location, but this requires accessing india and making a change.

Alternatively, if there was a --remote-openrc flag this could override the default location

$ cm-iu user fetch --remote-openrc=.cloudmesh/clouds/juno/openrc-12345.sh — Reply to this email directly or view it on GitHub https://github.com/cloudmesh/cloudmesh/issues/203.

badmutex commented 9 years ago

This is the situation we saw with Oliver's case. I'm not sure how he ended up with a different name for the rc file. I'll ask Koji.

badmutex commented 9 years ago

cc @kjtanaka

kojiwell commented 9 years ago

Why don't you guys ask Oliver first?

Koji

On Wed, Apr 15, 2015 at 1:52 PM, badi notifications@github.com wrote:

cc @kjtanaka https://github.com/kjtanaka

— Reply to this email directly or view it on GitHub https://github.com/cloudmesh/cloudmesh/issues/203#issuecomment-93500407.

badmutex commented 9 years ago

So it looks like renaming the openrc.sh file is an unsupported situation. I think this would be a nice feature to have, but low priority. @laszewsk I'll close if you prefer.

kojiwell commented 9 years ago

That would be a nice feature to have. Is there a cloudmesh's way for a user to switch tenant? If so, then, at least, you can introduce how to do it with cloudmesh? (If what I'm asking is pointless, please forget about it.)

lee212 commented 9 years ago

I will create a new issue to generate readable error messages if openrc.sh is missing along with this issue.