Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-14 Thread Nux!
Cheers for that, in my setup I had this appended to my sudoers file (note the 
missing keytool):

cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount
Defaults !requiretty

Adding keytool to that solved the problem. Thanks!


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
 From: Pierre-Luc Dion pdion...@apache.org
 To: dev@cloudstack.apache.org
 Sent: Tuesday, 14 October, 2014 01:58:54
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

 sudo line for user cloud should look like this:
 
 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount, /usr/bin/keytool
 
 keytool was probably missing which cause the sudo error...
 
 On Mon, Oct 13, 2014 at 8:39 PM, Ian Duffy i...@ianduffy.ie wrote:
 
  AFAIK the sudo rights are given during the mgmt server install.

 Yes this happens during the cloud-setup-management stage. It modifies the
 sudoers file.

 There is one binary it attempts to execute using sudo that it doesn't have
 permission to do so. If memory serves me correctly its keytool.

 On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:

  Is this done automatically? If yes, we may have just found a bug. :-)
 
  Lucian
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 
  - Original Message -
   From: Erik Weber terbol...@gmail.com
   To: dev dev@cloudstack.apache.org
   Sent: Monday, 13 October, 2014 20:16:53
   Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
 
   AFAIK the sudo rights are given during the mgmt server install.
  
   --
   Erik
  
   On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
  
   Marcus,
  
   User cloud has no sudo rights, that might be one of the causes. I
 have
   never read that this user should have sudo access.
   Am I wrong?
  
   Lucian
  
   --
   Sent from the Delta quadrant using Borg technology!
  
   Nux!
   www.nux.ro
  
   - Original Message -
From: Marcus shadow...@gmail.com
To: dev@cloudstack.apache.org
Sent: Monday, 13 October, 2014 18:01:15
Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
  
2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null)
 Executing:
sudo keytool -genkey -keystore
/etc/cloudstack/management/cloud.keystore -storepass vmops.com
-keypass vmops.com -keyalg RSA -validity 3650 -dname cn=Cloudstack
User,ou=management,o=management,c=Unknown
2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit
 value
  is
   1
   
Not sure exactly, but I notice this. Run that command manually and
 see
   
 


Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-14 Thread Daan Hoogland
adding it to server/conf/cloudstack-sudoers.in in 4.4 branch. Is this only
an issue in the 4.4 branch?

On Tue, Oct 14, 2014 at 9:48 AM, Nux! n...@li.nux.ro wrote:

 Cheers for that, in my setup I had this appended to my sudoers file (note
 the missing keytool):

 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount
 Defaults !requiretty

 Adding keytool to that solved the problem. Thanks!


 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Pierre-Luc Dion pdion...@apache.org
  To: dev@cloudstack.apache.org
  Sent: Tuesday, 14 October, 2014 01:58:54
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  sudo line for user cloud should look like this:
 
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount, /usr/bin/keytool
 
  keytool was probably missing which cause the sudo error...
 
  On Mon, Oct 13, 2014 at 8:39 PM, Ian Duffy i...@ianduffy.ie wrote:
 
   AFAIK the sudo rights are given during the mgmt server install.
 
  Yes this happens during the cloud-setup-management stage. It modifies
 the
  sudoers file.
 
  There is one binary it attempts to execute using sudo that it doesn't
 have
  permission to do so. If memory serves me correctly its keytool.
 
  On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:
 
   Is this done automatically? If yes, we may have just found a bug. :-)
  
   Lucian
  
   --
   Sent from the Delta quadrant using Borg technology!
  
   Nux!
   www.nux.ro
  
   - Original Message -
From: Erik Weber terbol...@gmail.com
To: dev dev@cloudstack.apache.org
Sent: Monday, 13 October, 2014 20:16:53
Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
  
AFAIK the sudo rights are given during the mgmt server install.
   
--
Erik
   
On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
   
Marcus,
   
User cloud has no sudo rights, that might be one of the causes. I
  have
never read that this user should have sudo access.
Am I wrong?
   
Lucian
   
--
Sent from the Delta quadrant using Borg technology!
   
Nux!
www.nux.ro
   
- Original Message -
 From: Marcus shadow...@gmail.com
 To: dev@cloudstack.apache.org
 Sent: Monday, 13 October, 2014 18:01:15
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
   
 2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null)
  Executing:
 sudo keytool -genkey -keystore
 /etc/cloudstack/management/cloud.keystore -storepass vmops.com
 -keypass vmops.com -keyalg RSA -validity 3650 -dname
 cn=Cloudstack
 User,ou=management,o=management,c=Unknown
 2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit
  value
   is
1

 Not sure exactly, but I notice this. Run that command manually
 and
  see

  




-- 
Daan


Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-14 Thread Daan Hoogland
created https://issues.apache.org/jira/browse/CLOUDSTACK-7702 to add any
comments

On Tue, Oct 14, 2014 at 10:00 AM, Daan Hoogland daan.hoogl...@gmail.com
wrote:

 adding it to server/conf/cloudstack-sudoers.in in 4.4 branch. Is this
 only an issue in the 4.4 branch?

 On Tue, Oct 14, 2014 at 9:48 AM, Nux! n...@li.nux.ro wrote:

 Cheers for that, in my setup I had this appended to my sudoers file (note
 the missing keytool):

 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount
 Defaults !requiretty

 Adding keytool to that solved the problem. Thanks!


 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Pierre-Luc Dion pdion...@apache.org
  To: dev@cloudstack.apache.org
  Sent: Tuesday, 14 October, 2014 01:58:54
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  sudo line for user cloud should look like this:
 
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount, /usr/bin/keytool
 
  keytool was probably missing which cause the sudo error...
 
  On Mon, Oct 13, 2014 at 8:39 PM, Ian Duffy i...@ianduffy.ie wrote:
 
   AFAIK the sudo rights are given during the mgmt server install.
 
  Yes this happens during the cloud-setup-management stage. It modifies
 the
  sudoers file.
 
  There is one binary it attempts to execute using sudo that it doesn't
 have
  permission to do so. If memory serves me correctly its keytool.
 
  On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:
 
   Is this done automatically? If yes, we may have just found a bug. :-)
  
   Lucian
  
   --
   Sent from the Delta quadrant using Borg technology!
  
   Nux!
   www.nux.ro
  
   - Original Message -
From: Erik Weber terbol...@gmail.com
To: dev dev@cloudstack.apache.org
Sent: Monday, 13 October, 2014 20:16:53
Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
  
AFAIK the sudo rights are given during the mgmt server install.
   
--
Erik
   
On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
   
Marcus,
   
User cloud has no sudo rights, that might be one of the causes.
 I
  have
never read that this user should have sudo access.
Am I wrong?
   
Lucian
   
--
Sent from the Delta quadrant using Borg technology!
   
Nux!
www.nux.ro
   
- Original Message -
 From: Marcus shadow...@gmail.com
 To: dev@cloudstack.apache.org
 Sent: Monday, 13 October, 2014 18:01:15
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
   
 2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null)
  Executing:
 sudo keytool -genkey -keystore
 /etc/cloudstack/management/cloud.keystore -storepass vmops.com
 -keypass vmops.com -keyalg RSA -validity 3650 -dname
 cn=Cloudstack
 User,ou=management,o=management,c=Unknown
 2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit
  value
   is
1

 Not sure exactly, but I notice this. Run that command manually
 and
  see

  




 --
 Daan




-- 
Daan


Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-14 Thread Nux!
Well, I've started with 4.3.0 then upgraded, so it's in 4.3 as well, at least.

Thanks,
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
 From: Daan Hoogland daan.hoogl...@gmail.com
 To: dev dev@cloudstack.apache.org
 Sent: Tuesday, 14 October, 2014 09:00:43
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

 adding it to server/conf/cloudstack-sudoers.in in 4.4 branch. Is this only
 an issue in the 4.4 branch?
 
 On Tue, Oct 14, 2014 at 9:48 AM, Nux! n...@li.nux.ro wrote:
 
 Cheers for that, in my setup I had this appended to my sudoers file (note
 the missing keytool):

 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount
 Defaults !requiretty

 Adding keytool to that solved the problem. Thanks!


 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Pierre-Luc Dion pdion...@apache.org
  To: dev@cloudstack.apache.org
  Sent: Tuesday, 14 October, 2014 01:58:54
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  sudo line for user cloud should look like this:
 
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount, /usr/bin/keytool
 
  keytool was probably missing which cause the sudo error...
 
  On Mon, Oct 13, 2014 at 8:39 PM, Ian Duffy i...@ianduffy.ie wrote:
 
   AFAIK the sudo rights are given during the mgmt server install.
 
  Yes this happens during the cloud-setup-management stage. It modifies
 the
  sudoers file.
 
  There is one binary it attempts to execute using sudo that it doesn't
 have
  permission to do so. If memory serves me correctly its keytool.
 
  On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:
 
   Is this done automatically? If yes, we may have just found a bug. :-)
  
   Lucian
  
   --
   Sent from the Delta quadrant using Borg technology!
  
   Nux!
   www.nux.ro
  
   - Original Message -
From: Erik Weber terbol...@gmail.com
To: dev dev@cloudstack.apache.org
Sent: Monday, 13 October, 2014 20:16:53
Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
  
AFAIK the sudo rights are given during the mgmt server install.
   
--
Erik
   
On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
   
Marcus,
   
User cloud has no sudo rights, that might be one of the causes. I
  have
never read that this user should have sudo access.
Am I wrong?
   
Lucian
   
--
Sent from the Delta quadrant using Borg technology!
   
Nux!
www.nux.ro
   
- Original Message -
 From: Marcus shadow...@gmail.com
 To: dev@cloudstack.apache.org
 Sent: Monday, 13 October, 2014 18:01:15
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
   
 2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null)
  Executing:
 sudo keytool -genkey -keystore
 /etc/cloudstack/management/cloud.keystore -storepass vmops.com
 -keypass vmops.com -keyalg RSA -validity 3650 -dname
 cn=Cloudstack
 User,ou=management,o=management,c=Unknown
 2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit
  value
   is
1

 Not sure exactly, but I notice this. Run that command manually
 and
  see

  

 
 
 
 --
 Daan


Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-14 Thread Erik Weber
Should already be fixed in 4.4, but I don't know if it the code handles
upgrades..

https://reviews.apache.org/r/24184/ was the relevant review

-- 
Erik

On Tue, Oct 14, 2014 at 10:00 AM, Daan Hoogland daan.hoogl...@gmail.com
wrote:

 adding it to server/conf/cloudstack-sudoers.in in 4.4 branch. Is this only
 an issue in the 4.4 branch?

 On Tue, Oct 14, 2014 at 9:48 AM, Nux! n...@li.nux.ro wrote:

  Cheers for that, in my setup I had this appended to my sudoers file (note
  the missing keytool):
 
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount
  Defaults !requiretty
 
  Adding keytool to that solved the problem. Thanks!
 
 
  Lucian
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 
  - Original Message -
   From: Pierre-Luc Dion pdion...@apache.org
   To: dev@cloudstack.apache.org
   Sent: Tuesday, 14 October, 2014 01:58:54
   Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
 
   sudo line for user cloud should look like this:
  
   cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
   /bin/umount, /usr/bin/keytool
  
   keytool was probably missing which cause the sudo error...
  
   On Mon, Oct 13, 2014 at 8:39 PM, Ian Duffy i...@ianduffy.ie wrote:
  
AFAIK the sudo rights are given during the mgmt server install.
  
   Yes this happens during the cloud-setup-management stage. It modifies
  the
   sudoers file.
  
   There is one binary it attempts to execute using sudo that it doesn't
  have
   permission to do so. If memory serves me correctly its keytool.
  
   On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:
  
Is this done automatically? If yes, we may have just found a bug.
 :-)
   
Lucian
   
--
Sent from the Delta quadrant using Borg technology!
   
Nux!
www.nux.ro
   
- Original Message -
 From: Erik Weber terbol...@gmail.com
 To: dev dev@cloudstack.apache.org
 Sent: Monday, 13 October, 2014 20:16:53
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
   
 AFAIK the sudo rights are given during the mgmt server install.

 --
 Erik

 On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:

 Marcus,

 User cloud has no sudo rights, that might be one of the
 causes. I
   have
 never read that this user should have sudo access.
 Am I wrong?

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Marcus shadow...@gmail.com
  To: dev@cloudstack.apache.org
  Sent: Monday, 13 October, 2014 18:01:15
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null)
   Executing:
  sudo keytool -genkey -keystore
  /etc/cloudstack/management/cloud.keystore -storepass vmops.com
  -keypass vmops.com -keyalg RSA -validity 3650 -dname
  cn=Cloudstack
  User,ou=management,o=management,c=Unknown
  2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit
   value
is
 1
 
  Not sure exactly, but I notice this. Run that command manually
  and
   see
 
   
 



 --
 Daan



Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-14 Thread Daan Hoogland
Erik, that seems to edit some agent or host utility, not an installation
property. I think Lucian reported on an issue on the MS. both are needed I
think.

On Tue, Oct 14, 2014 at 10:23 AM, Erik Weber terbol...@gmail.com wrote:

 Should already be fixed in 4.4, but I don't know if it the code handles
 upgrades..

 https://reviews.apache.org/r/24184/ was the relevant review

 --
 Erik

 On Tue, Oct 14, 2014 at 10:00 AM, Daan Hoogland daan.hoogl...@gmail.com
 wrote:

  adding it to server/conf/cloudstack-sudoers.in in 4.4 branch. Is this
 only
  an issue in the 4.4 branch?
 
  On Tue, Oct 14, 2014 at 9:48 AM, Nux! n...@li.nux.ro wrote:
 
   Cheers for that, in my setup I had this appended to my sudoers file
 (note
   the missing keytool):
  
   cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
   /bin/umount
   Defaults !requiretty
  
   Adding keytool to that solved the problem. Thanks!
  
  
   Lucian
  
   --
   Sent from the Delta quadrant using Borg technology!
  
   Nux!
   www.nux.ro
  
   - Original Message -
From: Pierre-Luc Dion pdion...@apache.org
To: dev@cloudstack.apache.org
Sent: Tuesday, 14 October, 2014 01:58:54
Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
  
sudo line for user cloud should look like this:
   
cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
/bin/umount, /usr/bin/keytool
   
keytool was probably missing which cause the sudo error...
   
On Mon, Oct 13, 2014 at 8:39 PM, Ian Duffy i...@ianduffy.ie wrote:
   
 AFAIK the sudo rights are given during the mgmt server install.
   
Yes this happens during the cloud-setup-management stage. It
 modifies
   the
sudoers file.
   
There is one binary it attempts to execute using sudo that it
 doesn't
   have
permission to do so. If memory serves me correctly its keytool.
   
On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:
   
 Is this done automatically? If yes, we may have just found a bug.
  :-)

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Erik Weber terbol...@gmail.com
  To: dev dev@cloudstack.apache.org
  Sent: Monday, 13 October, 2014 20:16:53
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  AFAIK the sudo rights are given during the mgmt server install.
 
  --
  Erik
 
  On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
 
  Marcus,
 
  User cloud has no sudo rights, that might be one of the
  causes. I
have
  never read that this user should have sudo access.
  Am I wrong?
 
  Lucian
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 
  - Original Message -
   From: Marcus shadow...@gmail.com
   To: dev@cloudstack.apache.org
   Sent: Monday, 13 October, 2014 18:01:15
   Subject: Re: Weird ssl keystore error while upgrading to
 4.4.1
 
   2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null)
Executing:
   sudo keytool -genkey -keystore
   /etc/cloudstack/management/cloud.keystore -storepass
 vmops.com
   -keypass vmops.com -keyalg RSA -validity 3650 -dname
   cn=Cloudstack
   User,ou=management,o=management,c=Unknown
   2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null)
 Exit
value
 is
  1
  
   Not sure exactly, but I notice this. Run that command
 manually
   and
see
  

  
 
 
 
  --
  Daan
 




-- 
Daan


Weird ssl keystore error while upgrading to 4.4.1

2014-10-13 Thread Nux!
Hello,

I've done a seemingly successful upgrade from 4.3.1 KVM to 4.4.1 SNAPSHOT and 
noticed this in the logs. It looks very serious but it doesn't seem to be 
affecting anything as far as I can tell.
Can anyone shed some light on this?

http://pastebin.com/raw.php?i=S5uXjrze


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-13 Thread Marcus
2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null) Executing:
sudo keytool -genkey -keystore
/etc/cloudstack/management/cloud.keystore -storepass vmops.com
-keypass vmops.com -keyalg RSA -validity 3650 -dname cn=Cloudstack
User,ou=management,o=management,c=Unknown
2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit value is 1

Not sure exactly, but I notice this. Run that command manually and see
why it is failing.


On Mon, Oct 13, 2014 at 10:06 AM, Nux! n...@li.nux.ro wrote:

 Hello,

 I've done a seemingly successful upgrade from 4.3.1 KVM to 4.4.1 SNAPSHOT
 and noticed this in the logs. It looks very serious but it doesn't seem to
 be affecting anything as far as I can tell.
 Can anyone shed some light on this?

 http://pastebin.com/raw.php?i=S5uXjrze


 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro



Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-13 Thread Nux!
Marcus,

User cloud has no sudo rights, that might be one of the causes. I have never 
read that this user should have sudo access.
Am I wrong?

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
 From: Marcus shadow...@gmail.com
 To: dev@cloudstack.apache.org
 Sent: Monday, 13 October, 2014 18:01:15
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

 2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null) Executing:
 sudo keytool -genkey -keystore
 /etc/cloudstack/management/cloud.keystore -storepass vmops.com
 -keypass vmops.com -keyalg RSA -validity 3650 -dname cn=Cloudstack
 User,ou=management,o=management,c=Unknown
 2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit value is 1
 
 Not sure exactly, but I notice this. Run that command manually and see
 


Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-13 Thread Erik Weber
AFAIK the sudo rights are given during the mgmt server install.

-- 
Erik

On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:

 Marcus,

 User cloud has no sudo rights, that might be one of the causes. I have
 never read that this user should have sudo access.
 Am I wrong?

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Marcus shadow...@gmail.com
  To: dev@cloudstack.apache.org
  Sent: Monday, 13 October, 2014 18:01:15
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null) Executing:
  sudo keytool -genkey -keystore
  /etc/cloudstack/management/cloud.keystore -storepass vmops.com
  -keypass vmops.com -keyalg RSA -validity 3650 -dname cn=Cloudstack
  User,ou=management,o=management,c=Unknown
  2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit value is
 1
 
  Not sure exactly, but I notice this. Run that command manually and see
 



Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-13 Thread Nux!
Is this done automatically? If yes, we may have just found a bug. :-)

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
 From: Erik Weber terbol...@gmail.com
 To: dev dev@cloudstack.apache.org
 Sent: Monday, 13 October, 2014 20:16:53
 Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

 AFAIK the sudo rights are given during the mgmt server install.
 
 --
 Erik
 
 On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
 
 Marcus,

 User cloud has no sudo rights, that might be one of the causes. I have
 never read that this user should have sudo access.
 Am I wrong?

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Marcus shadow...@gmail.com
  To: dev@cloudstack.apache.org
  Sent: Monday, 13 October, 2014 18:01:15
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null) Executing:
  sudo keytool -genkey -keystore
  /etc/cloudstack/management/cloud.keystore -storepass vmops.com
  -keypass vmops.com -keyalg RSA -validity 3650 -dname cn=Cloudstack
  User,ou=management,o=management,c=Unknown
  2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit value is
 1
 
  Not sure exactly, but I notice this. Run that command manually and see
 


Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-13 Thread Ian Duffy
 AFAIK the sudo rights are given during the mgmt server install.

Yes this happens during the cloud-setup-management stage. It modifies the
sudoers file.

There is one binary it attempts to execute using sudo that it doesn't have
permission to do so. If memory serves me correctly its keytool.

On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:

 Is this done automatically? If yes, we may have just found a bug. :-)

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Erik Weber terbol...@gmail.com
  To: dev dev@cloudstack.apache.org
  Sent: Monday, 13 October, 2014 20:16:53
  Subject: Re: Weird ssl keystore error while upgrading to 4.4.1

  AFAIK the sudo rights are given during the mgmt server install.
 
  --
  Erik
 
  On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
 
  Marcus,
 
  User cloud has no sudo rights, that might be one of the causes. I have
  never read that this user should have sudo access.
  Am I wrong?
 
  Lucian
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 
  - Original Message -
   From: Marcus shadow...@gmail.com
   To: dev@cloudstack.apache.org
   Sent: Monday, 13 October, 2014 18:01:15
   Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
 
   2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null) Executing:
   sudo keytool -genkey -keystore
   /etc/cloudstack/management/cloud.keystore -storepass vmops.com
   -keypass vmops.com -keyalg RSA -validity 3650 -dname cn=Cloudstack
   User,ou=management,o=management,c=Unknown
   2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit value
 is
  1
  
   Not sure exactly, but I notice this. Run that command manually and see
  



Re: Weird ssl keystore error while upgrading to 4.4.1

2014-10-13 Thread Pierre-Luc Dion
sudo line for user cloud should look like this:

cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
/bin/umount, /usr/bin/keytool

keytool was probably missing which cause the sudo error...

On Mon, Oct 13, 2014 at 8:39 PM, Ian Duffy i...@ianduffy.ie wrote:

  AFAIK the sudo rights are given during the mgmt server install.

 Yes this happens during the cloud-setup-management stage. It modifies the
 sudoers file.

 There is one binary it attempts to execute using sudo that it doesn't have
 permission to do so. If memory serves me correctly its keytool.

 On 14 October 2014 00:54, Nux! n...@li.nux.ro wrote:

  Is this done automatically? If yes, we may have just found a bug. :-)
 
  Lucian
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 
  - Original Message -
   From: Erik Weber terbol...@gmail.com
   To: dev dev@cloudstack.apache.org
   Sent: Monday, 13 October, 2014 20:16:53
   Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
 
   AFAIK the sudo rights are given during the mgmt server install.
  
   --
   Erik
  
   On Mon, Oct 13, 2014 at 7:14 PM, Nux! n...@li.nux.ro wrote:
  
   Marcus,
  
   User cloud has no sudo rights, that might be one of the causes. I
 have
   never read that this user should have sudo access.
   Am I wrong?
  
   Lucian
  
   --
   Sent from the Delta quadrant using Borg technology!
  
   Nux!
   www.nux.ro
  
   - Original Message -
From: Marcus shadow...@gmail.com
To: dev@cloudstack.apache.org
Sent: Monday, 13 October, 2014 18:01:15
Subject: Re: Weird ssl keystore error while upgrading to 4.4.1
  
2014-10-13 16:45:51,662 DEBUG [c.c.u.s.Script] (main:null)
 Executing:
sudo keytool -genkey -keystore
/etc/cloudstack/management/cloud.keystore -storepass vmops.com
-keypass vmops.com -keyalg RSA -validity 3650 -dname cn=Cloudstack
User,ou=management,o=management,c=Unknown
2014-10-13 16:45:51,675 DEBUG [c.c.u.s.Script] (main:null) Exit
 value
  is
   1
   
Not sure exactly, but I notice this. Run that command manually and
 see