You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/07/08 09:23:10 UTC

[GitHub] [cloudstack-documentation] Spaceman1984 opened a new pull request #229: Setup db schema only

Spaceman1984 opened a new pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229


   This PR adds the details of the --schema-only flag feature on the cloudstack-setup-databases script.


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] rhtyd merged pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
rhtyd merged pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229


   


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666746530



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 
+   -  (Optional) The cloudstack-setup-databases script is responsible for
+      creating the cloudstack databases (cloud, cloud_usage), creating a
+      user (cloud), granting permissions to the user and preparing the tables
+      for the first startup of the management server. There is an option to
+      bypass the two initial steps of creating the databases and granting
+      permissions to the user. This is useful if you don't want to expose your
+      root credentials but still want the database to be prepeared for first
+      start up. These skipped steps will have had to be done manually prior to
+      executing this script. This behaviour can be envoked by passing the
+      --schema-only flag. This flag conflicts with the --deploy-as flag so
+      the two cannot be used together.
 

Review comment:
       > I don't think it is applicable to this section @sureshanaparti, If you use the --schema-only flag here, you won't get the desired result, in this case, adding another management server.
   
   @Spaceman1984 It's not another management server, it is actually DB setup in separate node and there can be cases where user / databases are created already in that node and only schema creation is required.




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] Spaceman1984 commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666157225



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 
+   -  (Optional) The cloudstack-setup-databases script is responsible for
+      creating the cloudstack databases (cloud, cloud_usage), creating a
+      user (cloud), granting permissions to the user and preparing the tables
+      for the first startup of the management server. There is an option to
+      bypass the two initial steps of creating the databases and granting
+      permissions to the user. This is useful if you don't want to expose your
+      root credentials but still want the database to be prepeared for first
+      start up. These skipped steps will have had to be done manually prior to
+      executing this script. This behaviour can be envoked by passing the
+      --schema-only flag. This flag conflicts with the --deploy-as flag so
+      the two cannot be used together.
 

Review comment:
       I don't think it is applicable to this section @sureshanaparti, If you use the --schema-only flag here, you won't get the desired result, in this case, adding another management server.




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666043220



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 
+   -  (Optional) The cloudstack-setup-databases script is responsible for
+      creating the cloudstack databases (cloud, cloud_usage), creating a
+      user (cloud), granting permissions to the user and preparing the tables
+      for the first startup of the management server. There is an option to
+      bypass the two initial steps of creating the databases and granting
+      permissions to the user. This is useful if you don't want to expose your
+      root credentials but still want the database to be prepeared for first
+      start up. These skipped steps will have had to be done manually prior to
+      executing this script. This behaviour can be envoked by passing the
+      --schema-only flag. This flag conflicts with the --deploy-as flag so
+      the two cannot be used together.
 

Review comment:
       Update in the below section also.
   http://docs.cloudstack.apache.org/en/latest/installguide/management-server/index.html#install-the-database-on-a-separate-node




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] blueorangutan commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877135548


   @Spaceman1984 a Jenkins job has been kicked to build the document. I'll keep you posted as I make progress.


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] Spaceman1984 commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877127425


   @blueorangutan docbuild


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] Spaceman1984 commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877135241


   @blueorangutan docbuild


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] harikrishna-patnala commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
harikrishna-patnala commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666054831



##########
File path: source/adminguide/accounts.rst
##########
@@ -366,15 +366,15 @@ the user are used.
        #. CloudStack searches for it in LDAP by the configured
           ``ldap.username.attribute``.
 
-       #. If an LDAP user is found is found, CloudStack does a bind
+       #. If an LDAP user is found, CloudStack does a bind

Review comment:
       I think fixing some stuff like this is fine, otherwise, no one will be fixing this explicitly :p 




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] Spaceman1984 commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666707355



##########
File path: source/adminguide/accounts.rst
##########
@@ -366,15 +366,15 @@ the user are used.
        #. CloudStack searches for it in LDAP by the configured
           ``ldap.username.attribute``.
 
-       #. If an LDAP user is found is found, CloudStack does a bind
+       #. If an LDAP user is found, CloudStack does a bind

Review comment:
       Done




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] Spaceman1984 commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666157225



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 
+   -  (Optional) The cloudstack-setup-databases script is responsible for
+      creating the cloudstack databases (cloud, cloud_usage), creating a
+      user (cloud), granting permissions to the user and preparing the tables
+      for the first startup of the management server. There is an option to
+      bypass the two initial steps of creating the databases and granting
+      permissions to the user. This is useful if you don't want to expose your
+      root credentials but still want the database to be prepeared for first
+      start up. These skipped steps will have had to be done manually prior to
+      executing this script. This behaviour can be envoked by passing the
+      --schema-only flag. This flag conflicts with the --deploy-as flag so
+      the two cannot be used together.
 

Review comment:
       I don't think it is applicable to this section @sureshanaparti, If you use the --schema-only flag here, you will break the database.




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti removed a comment on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti removed a comment on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877124763


   @blueorangutan ui


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] blueorangutan commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877128383


   Doc build preview: http://qa.cloudstack.cloud/docs/WIP-PROOFING/pr/229. (SL-JID 109)


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] Spaceman1984 commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666040310



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 
+   -  (Optional) The cloudstack-setup-databases script is responsible for
+      creating the cloudstack databases (cloud, cloud_usage), creating a
+      user (cloud), granting permissions to the user and preparing the tables

Review comment:
       Sure, np




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877124763


   @blueorangutan ui


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] blueorangutan commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877164605


   @sureshanaparti a Jenkins job has been kicked to build the document. I'll keep you posted as I make progress.


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] blueorangutan commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877136182


   Doc build preview: http://qa.cloudstack.cloud/docs/WIP-PROOFING/pr/229. (SL-JID 110)


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666884655



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,33 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 
+   -  (Optional) There is an option to bypass the creating of the databases,
+      user and granting permissions to the user. This is useful if you don't
+      want to expose your root credentials but still want the database to
+      be prepeared for first start up. These skipped steps will have had to be

Review comment:
       typo `prepeared` => _prepared_




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] blueorangutan commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877165133


   Doc build preview: http://qa.cloudstack.cloud/docs/WIP-PROOFING/pr/229. (SL-JID 111)


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877164101


   @blueorangutan docbuild


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666034676



##########
File path: source/adminguide/accounts.rst
##########
@@ -366,15 +366,15 @@ the user are used.
        #. CloudStack searches for it in LDAP by the configured
           ``ldap.username.attribute``.
 
-       #. If an LDAP user is found is found, CloudStack does a bind
+       #. If an LDAP user is found, CloudStack does a bind

Review comment:
       @Spaceman1984 can you remove this changes if not part of this PR ?




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] Spaceman1984 commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
Spaceman1984 commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666184435



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 

Review comment:
       Done




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666039329



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 
+   -  (Optional) The cloudstack-setup-databases script is responsible for
+      creating the cloudstack databases (cloud, cloud_usage), creating a
+      user (cloud), granting permissions to the user and preparing the tables

Review comment:
       can you add the permissions details to be granted for 'cloud' user




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] blueorangutan commented on pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#issuecomment-877127841


   @Spaceman1984 a Jenkins job has been kicked to build the document. I'll keep you posted as I make progress.


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack-documentation] sureshanaparti commented on a change in pull request #229: Setup db schema only

Posted by GitBox <gi...@apache.org>.
sureshanaparti commented on a change in pull request #229:
URL: https://github.com/apache/cloudstack-documentation/pull/229#discussion_r666037010



##########
File path: source/installguide/management-server/_database.rst
##########
@@ -197,6 +197,17 @@ MySQL. See :ref:`install-database-on-separate-node`.
       cluster management server node IP. If not specified, the local IP
       address will be used.
 

Review comment:
       option description should be fine here, any generic statements can be moved to the script description.




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

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