Ask Your Question
0

Access a container from a nova server inside heat

asked 2014-12-25 03:58:31 -0500

erivni gravatar image

Hi,

I want to create a template which deploys a swift container and a nova server. The user_data inside the server will upload/download files from this container.

I tried to create a user by using: AWS::IAM::User, AWS::IAM::AccessKey and OS::Heat::AccessPolicy resources but when I try to access the container I get an authentication failure. Is there a way to access the container without passing the os username and password credentials as a template parameters?

Thanks for your help,

Einav.

edit retag flag offensive close merge delete

Comments

You can make your container publicly accessible.

Can you post the code you used to create the containers ?

I believe adding this property would make it publicly readable 'X-Container-Read: ".r:*"' Then you can read the objects by using a URL. Similarly you can provide write access as well.

bingoarunprasath gravatar imagebingoarunprasath ( 2014-12-30 04:59:23 -0500 )edit

Hi, I'm using a public container. Here's the code:

swift_container: type: OS::Swift::Container properties: name: myContainer

I can't access this container from an inside user(AWS::IAM::User in the template). I only can have access by passing my os-username, os-tenant and os-password.

erivni gravatar imageerivni ( 2014-12-30 05:21:12 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-07 19:28:11 -0500

asalkeld gravatar image

Hi Einav

You could let Heat do this for by using SoftwareConfiguration resources.

Try this template: https://github.com/openstack/heat-tem...

Note if you change line 80 to POLL_TEMP_URL Heat will use swift temp urls, to provide tempory non-authenticated access from the guest to data like this.

-Angus

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-25 03:58:31 -0500

Seen: 485 times

Last updated: Jan 07 '15