cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kirk Kosinski <kirkkosin...@gmail.com>
Subject Re: CS 4 Trial - CloudStack-oss-4.0.0-524.tar
Date Sat, 13 Oct 2012 08:09:56 GMT
Hi, Bruce.  It looks like something is wrong with sudo.  Did you run the
cloud-setup-management script?  It should create a line in /etc/sudoers
like:
cloud ALL =NOPASSWD : ALL

If that's good, try adding the following to see if it helps:
Defaults:cloud !requiretty

This is what a successful keystore creation looks like in the log:

2012-10-13 00:35:54,399 DEBUG [utils.script.Script] (main:null)
Executing: sudo keytool -genkey -keystore
/etc/cloud/management/cloud.keystore -storepass vmops.com -keypass
vmops.com -keyalg RSA -validity 3650 -dname cn="Cloudstack
User",ou="lab.local",o="lab.local",c="Unknown"
2012-10-13 00:35:57,162 DEBUG [utils.script.Script] (main:null)
Execution is successful.
2012-10-13 00:35:57,164 INFO  [cloud.server.ConfigurationServerImpl]
(main:null) Generated SSL keystore.
2012-10-13 00:35:57,288 INFO  [cloud.server.ConfigurationServerImpl]
(main:null) Stored SSL keystore to database.

The log above is from a clean install of
CloudStack-non-OSS-4.0.0-16.tar.bz2 and I can login with admin /
password successfully.  The system user is not meant to be used, and you
cannot create new users if you cannot login in the first place.

On older CloudStack versions I've seen an issue where you cannot login
if /mnt/ is read-only, so make sure you don't have anything mounted
there (e.g. a VMware or XenServer tools ISO).  If sudo isn't working it
may cause similar problems, so I suggest looking into the sudo issue.

Best regards,
Kirk


On 10/12/2012 05:42 PM, bruce.m@v365.com.au wrote:
>   
> 
> hi
> 
> i posted the log here 
> 
> http://pastebin.com/u/brucem [1]
> cloudstack 4 management server log
> 
> also found this in the log
> 
> 
> 2012-10-13 10:58:04,106 DEBUG [utils.script.Script] (main:null) sudo:
> no tty present and no askpass program specifiedSorry, try again.sudo: no
> tty present and no askpass program specifiedSorry, try again.sudo: no
> tty present and no askpass program specifiedSorry, try again.sudo: 3
> incorrect password attempts
> 2012-10-13 10:58:04,112 WARN
> [cloud.server.ConfigurationServerImpl] (main:null) Would use fail-safe
> keystore to continue.
> 
> does anyone know how to create a new user in DB
> from CLI or anyone know the password for account 'system'? then i could
> try to login and create new user?
> 
> Regards.
> 
> BruceM
> 
> On 13.10.2012
> 11:22, Ahmad Emneina wrote:
>> Can you paste your management server logs
> into pastebin or similar site?
>> Also attachments are dropped by the
> mailing lists' server. Picture
>> attachments also need to go through a
> paste site.
>>
>> On 10/12/12 5:17 PM, "bruce.m@v365.com.au" wrote:
>>
> 
>>> hi all
>>>
>>> i tried latest build CloudStack-oss-4.0.0-524.tar
>>>
>>> it
> builds with 0 errors.
>>>
>>> i run the setup database script to the Mysql
> server (external host)
>>> That completes and all looks
> ok
>>>
>>> reboot
>>> and the management login comes up.
>>>
>>> still cant
> login in with admin password
>>>
>>> connect to sql database with navicat
> and find the user table
>>>
>>> open it and see jpg. you can see the admin
> user in the database with
>>> presumably a hashed/encrypted
> password.
>>>
>>> so the script appears to now be creating the user. so why
> cant i log
>>> in?
>>>
>>> i tried 3 different browsers. the UB12.4.1 server
> is rebuild from
>>> scratch,
>>>
>>> any ideas how to mod the password from
> CLI?
>>>
>>> Confounded and Confused?!?!?
>>>
>>>
>>> Bruce McKenzie 
> 
> 
> 
> Links:
> ------
> [1] http://pastebin.com/u/brucem
> 

Mime
View raw message