You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/05/04 14:06:15 UTC

[GitHub] [cloudstack] derhecht opened a new issue #4925: cloudstack-setup-databases fails on complex database key

derhecht opened a new issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925


   ##### ISSUE TYPE
    * Bug Report
   
   ##### COMPONENT NAME
   ~~~
   Setup
   ~~~
   
   ##### CLOUDSTACK VERSION
   ~~~
   4.15.0
   ~~~
   
   ##### CONFIGURATION
   not relevant I think
   
   ##### OS / ENVIRONMENT
   not relevant I think
   
   ##### SUMMARY
   I run 
   cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key> -i <management_server_ip>
   with e.g. the following (see database key)
   cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k "Some&Crazy&Password" -i <management_server_ip>
   it splits the key and try to run it as commands (see screenshot)
   ![Bildschirmfoto 2021-04-15 um 15 27 36](https://user-images.githubusercontent.com/869755/114876987-27823c80-9dff-11eb-8546-024e1cec9ec0.jpg)
   
   ##### STEPS TO REPRODUCE
   
   1. Follow install instructions on https://docs.cloudstack.apache.org/en/4.15.0.0/installguide/management-server/index.html
   2. in step where you have to run cloudstack-setup-databases, do something like the following:
   
   ~~~
   cloudstack-setup-databases cloud:"password"@localhost --deploy-as=root:"password" -m "password" -k "Some&Crazy&Password"
   ~~~
   
   ##### EXPECTED RESULTS
   ~~~
   Script should setup the given key.
   ~~~
   
   ##### ACTUAL RESULTS
   Error message when processing encryption.
   
   ~~~
   see screenshot above
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] derhecht commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
derhecht commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-825501566


   > @derhecht can you try the key string with ampersand with single quotes? The double quotes will cause the string to be evaluated, essentially it's a bash/shell thing than CloudStack issue.
   
   not atm as instance is running now - setup has finished - for the first try


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-824682943


   @derhecht is this a containerised env, do you have `/bin/sh` as per the error in screenshot?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] derhecht commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
derhecht commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-823844789


   CentOS 7


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] derhecht commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
derhecht commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-825004254


   no it is not resolved.
   when i use a key within "&" (obviously) the script fails.
   if not, script run successfully.
   
   so, the content of the (secret) key affects the script called which should not.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-823842198


   @derhecht which Linux distro and version is that? cc @davidjumani @shwstppr 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd edited a comment on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd edited a comment on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-824682943


   @derhecht is this a containerised env, do you have `/bin/sh` as per the error in screenshot? Can you check if any dependencies are missing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd closed issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd closed issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-825048217


   @derhecht can you try the key string with ampersand with single quotes? The double quotes will cause the string to be evaluated, essentially it's a bash/shell thing than CloudStack issue. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-832121340


   Fixed for 4.15 based on backport PR https://github.com/apache/cloudstack/pull/4995


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] Spaceman1984 commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-824979714


   > I just changed the key and setup script works like a charm
   
   How do you mean @derhecht? Is this issue resolved then?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] derhecht commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
derhecht commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-824762284


   yes, I have /bin/sh in my default Cent OS 7 installation


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-831968945


   Fixed in https://github.com/apache/cloudstack/pull/4976


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-825459649


   cc @Spaceman1984 investigate and see if we can handle/fix something in the script (to handle keys with ampersand)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] Spaceman1984 commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-825555096


   > cc @Spaceman1984 investigate and see if we can handle/fix something in the script (to handle keys with ampersand)
   
   I'm on it @rhtyd 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] derhecht commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
derhecht commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-824762503


   I just changed the key and setup script works like a charm


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd closed issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd closed issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4925: cloudstack-setup-databases fails on complex database key

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4925:
URL: https://github.com/apache/cloudstack/issues/4925#issuecomment-831969571


   @Spaceman1984 pl resubmit the PR against 4.15 branch


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org