att-comdev / promenade

This project has moved to OpenStack.
https://www.airshipit.org/
Apache License 2.0
11 stars 15 forks source link

deckhand-db-sync goes CrashLoopBackOff #60

Closed pratapaprasanna closed 6 years ago

pratapaprasanna commented 6 years ago

Hi Team,

I have deployed Promenade thanks to @mark-burnett :) it worked

But there is an issue once the entire genesis.sh's execution is done

with the Yaml files present in example/complete.

I find that

ucp deckhand-db-sync-2zbnq 0/1 CrashLoopBackOff 6 12m 10.97.26.60 n0

and when i see the logs

kubectl logs deckhand-db-sync-2zbnq -n ucp
+ alembic upgrade head
/tmp/db-sync.sh: line 7: alembic: command not found

I think alembic is missing in the pod.

Thanks in advance.

fmontei commented 6 years ago

Current Deckhand revision used by Promenade is this: https://github.com/att-comdev/promenade/blob/f360201920401d526213e1ddd2f128891d956de8/requirements-direct.txt#L16

That corresponds to this: https://review.gerrithub.io/#/c/406462/

Which doesn't include: https://review.gerrithub.io/#/c/406626/ (which adds alembic support to Deckhand).

pratapaprasanna commented 6 years ago

Hi @fmontei

So now how do i fix it ?? by changing the requirements-direct.txt using this

gerrit link

One more thing while deploying this genesis-script on Ubuntu 16.04 LTS and it was failing to update the apt repository ceph-common=10.2.9-0ubuntu0.16.04.1

i tried just ceph-common and excluded =10.2.9-0ubuntu0.16.04.1 and it worked

may be you guys can have a look :)

mark-burnett commented 6 years ago

There is a mistake in the complete example here - we need to change the db_sync job from using the postgres image to the deckhand image: https://github.com/att-comdev/promenade/blob/master/examples/complete/armada-resources.yaml#L1726

The value should match whatever image you're using for deckhand, e.g. quay.io/attcomdev/deckhand:latest.

Sorry, ideally these examples would be gated on, but unfortunately our infrastructure cannot support that at this time.

mark-burnett commented 6 years ago

Regarding the ceph package issue, it may be that upstream ubuntu have deleted that old package and replaced it with a newer one. You don't need to pin it for testing purposes.

pratapaprasanna commented 6 years ago

Hi @mark-burnett ,

Great these are the issues I got while testing promenade :P thanks for the support i will get back to u in case of any doubts. I hope these issues will make promenade a better product :)

I have another doubt regarding the treasure map as per this

https://treasuremap.readthedocs.io/en/latest/deployment.html#preparing-deployment-documents

It states that we have to copy the existing site docs for reference where can I get the example site docs ???

I really like the product and would like to contribute. How to get in touch with you guys and contribute.???

Thanks in advance.

mark-burnett commented 6 years ago

Hey @pratapaprasanna, sorry for the slow responses.

You should be able to find a sample set of configuration here: https://github.com/att-comdev/treasuremap/tree/master/deployment_files

This config set is run through a Jenkins job that uses a VM for genesis to provision baremetal nodes, so it should generally be in good shape.

pratapaprasanna commented 6 years ago

Hey,

Its okay I understand you and your team's effort to develop a wonderful product that's the reason why I was asking for means to communicate apart from this GitHub issues page :P

BTW @mark-burnett I Could successfully deploy promenade

is there any document to proceed further to deploy OpenStack with Armada?

I'm sorry I couldn't find a proper document for that either in armada or in Promenade .. :(

Thanks in advance.

pratapaprasanna commented 6 years ago

I am closing the issue because the error is fixed by changing the image to quay.io/attcomdev/deckhand:latest in deckhand.

Thanks for the help and support.