Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

AuthorizationException #59

Open
fsamreen opened this issue Feb 21, 2018 · 7 comments
Open

AuthorizationException #59

fsamreen opened this issue Feb 21, 2018 · 7 comments

Comments

@fsamreen
Copy link

Hi,

I tried deploying a mongoDB-deployment model on ec2 through shell mode. I am finding an authorization exception for ec2-us-east-1 (as attached), though not mentioned as location in json file. I even tried deploying existing sample (https://github.com/SINTEF-9012/cloudml/blob/master/docs/samples/sensapp_with_datacollector.json) and found the same error.
Could you please let me know what wrong is with my script (faizasample) or if I am missed with some essential step?
shell-screenshot
faizasample.txt

Thank you.
Faiza

@nicolasferry
Copy link
Contributor

nicolasferry commented Feb 23, 2018

Hi,

Is the content of the file:
C:/credentials/credentials/accesskey

as follows?
login=ec2_access_key_id
passwd=ec2_access_key

Also, have you created a security group called sensapp?
I see that you are trying to use our shell script to install MongoDB, unfortunately, we have removed our shell script repository. If needed I can provide you with this script.

Best regards,
Nicolas

@fsamreen
Copy link
Author

Hi Nicolas,

Thanks for your reply.
Content of the files are same as you mentioned. I have changed your repository with mine ( a test bash script just to create two directories). I am facing error about image id. If I give only image id it displays following error
shell2
If I add region then it gives error about not finding image id, see following
shell3

Other than that I am facing following issues:

  1. Shell is unable to load a deployment model from any location except if the file is in /ui/shell/target.

  2. If I write exit command shell does not exit to cmd.

  3. If I rerun the "load deployment" command it end up giving many errors, which does not make sense to me, see following
    shell4

  4. I tried using CloudML web editor by following the given tutorial. I get error connecting server. I am able to load a model (faizasample1) and can see it, though nothing happens on click to deployment.

A quick question: Does CloudML support deployment on Microsoft Azure?

I am afraid I have not much time left to finish this phase of project and so asking loads of questions in one go.

Thanks for your help.

Faiza

@nicolasferry
Copy link
Contributor

Hello,

Regarding error 0, the issue when creating a VM:
Please remove the "b" in the definition of the region. I think this should fix your error.
"imageId" : "eu-west-1/ami-1b791862",
"location" : "eu-west-1",

Regarding point 2:
This is possible, no need to put the deployment model in the target repository (e.g., feel free to write load deployment from ../test.json). BTW, remember that the paths in the model should be relative to the location of the cloudml-shell.jar

Regarding point 3:
Yes, we need to fix this. There is a thread which is not properly killed :(

Regarding point 4:
3 years ago, yes we were supporting Microsoft Azure. I cannot guarantee that this is still working (maybe the Azure API has changes since then)! If you want I can provide you with an examples. Preferred providers are EC2, OpenStack, Flexiscale and cloudsigma.

Best regards,
Nicolas

@fsamreen
Copy link
Author

Hi Nicolas,

Thank you for your quick reply. Finally, I managed to deploy a simple test:) Happy to close this thread, but before that could you please entertain few more questions.

  1. It would be great if you can share azure example.

  2. Do you have any example deployment model for MPI/NFS cluster on cloud?

  3. I give it a go to the textual editor for cloudML-dsl as well. I have whole lots of naive questions (i.e. what is ML and SL, how to define internal/external component, what are optional points in defining a component, what does "properties" represent, etc) and wondering if there is some document/guide to get good help to write a deployment model. I tried grasping concepts through the meta-model diagram, but it is not complete i think.

  4. I would like to use CloudML web editor. As I mentioned earlier that I get an error " error connecting server". I might not following proper steps, what is the best resource to look for details?

You have been a great help Nicolas, I hope I am not overwhelming you with loads of questions.

Many Thanks,
Faiza

@fsamreen
Copy link
Author

fsamreen commented Mar 9, 2018

Hi Nicolas,

Any updates?

Thanks,
Faiza

@nicolasferry
Copy link
Contributor

Hi,

It would be great if you can share azure example.

Done, available in the docs\samples repository. Please remember that this has not been tested for years now. So, it might not work anymore as the APIs might have changed.

Do you have any example deployment model for MPI/NFS cluster on cloud?

Unfortunately, no.

I give it a go to the textual editor for cloudML-dsl as well. I have whole lots of naive questions (i.e. what is ML and SL, how to define internal/external component, what are optional points in defining a component, what does "properties" represent, etc) and wondering if there is some document/guide to get good help to write a deployment model. I tried grasping concepts through the meta-model diagram, but it is not complete i think.

For questions regarding how to use "cloudML-dsl" editor, please raise issues directly in its GitHub repository. For more details about the language itself, please have a look at: https://dl.acm.org/citation.cfm?id=3125621

I would like to use CloudML web editor. As I mentioned earlier that I get an error " error connecting server". I might not following proper steps, what is the best resource to look for details?

Maybe the simplest is to have a look at this video: https://www.youtube.com/watch?v=sX74-V4MOYk&index=2&list=PLbBGi9aM1SkVSBai9E1hrGpsMlB_2mFdq&t=0s

Br,
Nicolas

@fsamreen
Copy link
Author

Hi Nicolas,

Thank you for sending over the links, very helpful.
Could you please explain the credential format for Azure?

  1. What does a login and password indicate (from Azure perspective) in the ./credential. Does this coincide with ADC, i.e, client ID and secret key?
  2. What does "value" indicates?("value" : "9e3075ae-9384-4f05-a8e4-b82818bc4884") --is this subscription ID or tenant ID?
  3. The ssh key value in vm description is .ppk or pfx? (sshKey" : "azurekey/azurePrivate.pfx")

Many Thanks,
Faiza

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants