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 2020/09/28 14:37:51 UTC

[GitHub] [cloudstack-cloudmonkey] ravening opened a new issue #69: Check for local profile also if localcloud is missing

ravening opened a new issue #69:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/69


   In earlier cloudmonkey, the default is profile is `local` and if we use the same config with `cmk` then it fails as it looks for `localcloud` in config file. It should work with either `localcloud` or `local` as default profile name to preserve backward compatibility
   
   ```
   () 🐱 > list zones
   Please provide either apikey/secretkey or username/password to make an API call
   🙈 Error: failed to authenticate to make API call
   () 🐱 >
   ```
   
   explicitly mentioning `local` works
   
   ```
   # cmk -p local
   Apache CloudStack 🐵 CloudMonkey 6.1.0
   Report issues: https://github.com/apache/cloudstack-cloudmonkey/issues
   
   (local) 🐱 > list zones
   {
     "count": 1,
     "zone": [
       {
         "allocationstate": "Enabled",
         "dhcpprovider": "VirtualRouter",
         "dns1": "8.8.8.8",
         "guestcidraddress": "192.168.10.0/24",
         "id": "8ae93aed-7db1-4a1a-9030-db0efac6ba62",
         "internaldns1": "8.8.4.4",
         "localstorageenabled": false,
         "name": "mgt122-10",
         "networktype": "Advanced",
         "securitygroupsenabled": false,
         "tags": [],
         "zonetoken": "09-97f3-34cf-bba1-5fc23fcb"
       }
     ]
   }
   (local) 🐱 >
   ```


----------------------------------------------------------------
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-cloudmonkey] rhtyd commented on issue #69: Check for local profile also if localcloud is missing

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


   @ravening I think somewhere in notes/MLs we had discussed this. @Pearl1594 consider for 6.2.0 if the fix is simple (i.e. if localcloud is not availble fallback to local if available; or simply - throw an error that profile not found or something).


-- 
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-cloudmonkey] shwstppr edited a comment on issue #69: Check for local profile also if localcloud is missing

Posted by GitBox <gi...@apache.org>.
shwstppr edited a comment on issue #69:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/69#issuecomment-884770170


   @ravening @rhtyd @Pearl1594 
   Release before 6.0 used to use profiles and other configs from `.cloudmonkey` subdir in HOME directory. With 6.0 it started using `.cmk` subdir. And not just the profile none of other configurations (output format, etc) will be used by newer install. Personally, I don't see a point in checking old config now. And there is some different in config storing and parsing (replacing old config in cmk dir doesn't work).
   Also, both installs live as a separate program.
   I would suggest we add a note in release notes/documentation that operator will have to re-add profiles if upgrading from cloudmonkey 5.3.3 or below.


-- 
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-cloudmonkey] rhtyd commented on issue #69: Check for local profile also if localcloud is missing

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


   Agree with @shwstppr 's comment, unless you've manually copied the old config file you won't hit this @ravening - I propose you start fresh and manually migrate your profiles to the new `cmk`. Please re-open if not satisfied.


-- 
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-cloudmonkey] rhtyd closed issue #69: Check for local profile also if localcloud is missing

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


   


-- 
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-cloudmonkey] shwstppr commented on issue #69: Check for local profile also if localcloud is missing

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #69:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/69#issuecomment-884770170


   @ravening @rhtyd @Pearl1594 
   Release before 6.0 used to use profiles and other configs from `.cloudmonkey` subdir in HOME directory. With 6.0 it started using `.cmk` subdir. And not just the profile none of other configurations (output format, etc) will be used by newer install. Personally, I don't see a point in checking old config now.
   Also, both installs live as a separate program.
   I would suggest we add a note in release notes/documentation that operator will have to re-add profiles if upgrading from cloudmonkey 5.3.3 or below.


-- 
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-cloudmonkey] Pearl1594 commented on issue #69: Check for local profile also if localcloud is missing

Posted by GitBox <gi...@apache.org>.
Pearl1594 commented on issue #69:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/69#issuecomment-878821823


   Currently, a localcloud profile is automatically created if not present by default. Moving this to the next milestone.


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