You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Sudha Ponnaganti <su...@citrix.com> on 2013/03/25 22:14:32 UTC

[ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Hi,

Requesting help to resolve the following issue, if you have done upgrade.
https://issues.apache.org/jira/browse/CLOUDSTACK-1694

Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.

Thanks
/Sudha

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Chip Childers <ch...@sungard.com>.
On Wed, Mar 27, 2013 at 07:57:14AM -0700, Sudha Ponnaganti wrote:
> Chip,
> 
> Will check upgrade once Murali's fix is pushed.  There are couple of more issues which seem to be fixed but kelven need to review and mark them 
> 
> https://issues.apache.org/jira/browse/CLOUDSTACK-1811 
> https://issues.apache.org/jira/browse/CLOUDSTACK-1776 

Kelven mentions in those bugs that the fix is pending.  We'll have to
see if it was already applied or not.  Hopefully we can complete testing
of the upgrade process after that confirmation.

-chip

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Sudha Ponnaganti <su...@citrix.com>.
Chip,

Will check upgrade once Murali's fix is pushed.  There are couple of more issues which seem to be fixed but kelven need to review and mark them 

https://issues.apache.org/jira/browse/CLOUDSTACK-1811 
https://issues.apache.org/jira/browse/CLOUDSTACK-1776  

thanks
/sudha


-----Original Message-----
From: Chip Childers [mailto:chip.childers@sungard.com] 
Sent: Wednesday, March 27, 2013 7:07 AM
To: dev@cloudstack.apache.org
Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

On Mon, Mar 25, 2013 at 02:14:32PM -0700, Sudha Ponnaganti wrote:
> Hi,
> 
> Requesting help to resolve the following issue, if you have done upgrade.
> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
> 
> Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.
> 
> Thanks
> /Sudha

Just to follow up on this.  I see that 1694 is marked as Resolved / Invalid.  Are we OK with the upgrade now?

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Chip Childers <ch...@sungard.com>.
On Mon, Mar 25, 2013 at 02:14:32PM -0700, Sudha Ponnaganti wrote:
> Hi,
> 
> Requesting help to resolve the following issue, if you have done upgrade.
> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
> 
> Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.
> 
> Thanks
> /Sudha

Just to follow up on this.  I see that 1694 is marked as Resolved /
Invalid.  Are we OK with the upgrade now?

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Sangeetha Hariharan <Sa...@citrix.com>.
I tried upgrade from 4.0 -> 4.1 using Rhel6.3 binaries for Management server and KVM hosts in Advanced zone set up.

I had an issue with KVM agent upgrade. After upgrading the binaries on KVM host , cloudstack-agent fails to start.
This was because agent.properties is not restored as part of upgrading the binaries from 4.0 to 4.1.
Once I restored the  agent.properties manually , cloudstack-agent was able to start successfully.

After upgrade , I was able to deploy Vms in new network without any issues.

Following are the issues that were found during upgrade testing:

	CLOUDSTACK-1844 - Upgrade 4.0 -> 4.1 - KVM host agent.properties is not restored as part of upgrading the binaries from 4.0 to 4.1. 

When DB dump checks between upgraded setup and freshly installed 4.1 set up were done , following issues were noted:  
 
	CLOUDSTACK-1842 - ASF 4.0 to 4.1 Upgrade: Missing Ubuntu 12.04 Guest OS Types on the Upgraded Setup 

	CLOUDSTACK-1841 - ASF 4.0 to 4.1 Upgrade: Missing Few Global Configuration parameters on the Upgraded Setup 

	CLOUDSTACK-1839 - Upgrade 4.0 -> 4.1 - Upgraded DB has lot more keys and indexes for many tables compare to the fresh installed 4.1 DB. 

-Thanks
Sangeetha

-----Original Message-----
From: Sangeetha Hariharan [mailto:Sangeetha.Hariharan@citrix.com] 
Sent: Thursday, March 28, 2013 1:22 PM
To: Chip Childers
Cc: dev@cloudstack.apache.org
Subject: RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Create a doc bug for documenting these steps  - CLOUDSTACK-1837 - Additonal Steps ( Restart of all system Vms , copy vhd-utils) to be included in the upgrade procedure from 4.0 -> 4.1

-Thanks
Sangeetha
-----Original Message-----
From: Chip Childers [mailto:chip.childers@sungard.com]
Sent: Thursday, March 28, 2013 12:18 PM
To: Sangeetha Hariharan
Cc: dev@cloudstack.apache.org
Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

On Thu, Mar 28, 2013 at 11:28:33AM -0700, Sangeetha Hariharan wrote:
> Then we can go with the option of reboot (start and stop) of all the system Vms (SSVM,CPVM and routers) as part of Upgrade procedure ?

Sounds like it.  Care to add a note to the release notes wiki page to this effect?

> 
> -Thanks
> Sangeetha
> 
> -----Original Message-----
> From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> Sent: Thursday, March 28, 2013 11:21 AM
> To: Chip Childers
> Cc: dev@cloudstack.apache.org
> Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> 
> I'm also not confident that option 1 really fixes anything. The user has to reboot their system VMS eventually, and even if we fix this one thing to help them get by until they do, what other lingering issues will arise?
> On Mar 28, 2013 11:38 AM, "Chip Childers" <ch...@sungard.com> wrote:
> 
> > On Thu, Mar 28, 2013 at 09:51:16AM -0700, Sangeetha Hariharan wrote:
> > > Can we get a confirmation on the approach we want to take?
> > >
> > > 1. We are going to fix the router for  the case - " if the router 
> > > has
> > upgraded its scripts, and then adjust how we call edithosts.sh" ?
> > > 2. Going to suggest a reboot (start and stop) of all the system 
> > > Vms
> > (SSVM,CPVM and routers) as part of Upgrade procedure?
> >
> > Option 2 is my preference.  Option 1 requires more testing, etc...
> >
> 

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Sangeetha Hariharan <Sa...@citrix.com>.
Create a doc bug for documenting these steps  - CLOUDSTACK-1837 - Additonal Steps ( Restart of all system Vms , copy vhd-utils) to be included in the upgrade procedure from 4.0 -> 4.1

-Thanks
Sangeetha
-----Original Message-----
From: Chip Childers [mailto:chip.childers@sungard.com] 
Sent: Thursday, March 28, 2013 12:18 PM
To: Sangeetha Hariharan
Cc: dev@cloudstack.apache.org
Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

On Thu, Mar 28, 2013 at 11:28:33AM -0700, Sangeetha Hariharan wrote:
> Then we can go with the option of reboot (start and stop) of all the system Vms (SSVM,CPVM and routers) as part of Upgrade procedure ?

Sounds like it.  Care to add a note to the release notes wiki page to this effect?

> 
> -Thanks
> Sangeetha
> 
> -----Original Message-----
> From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> Sent: Thursday, March 28, 2013 11:21 AM
> To: Chip Childers
> Cc: dev@cloudstack.apache.org
> Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> 
> I'm also not confident that option 1 really fixes anything. The user has to reboot their system VMS eventually, and even if we fix this one thing to help them get by until they do, what other lingering issues will arise?
> On Mar 28, 2013 11:38 AM, "Chip Childers" <ch...@sungard.com> wrote:
> 
> > On Thu, Mar 28, 2013 at 09:51:16AM -0700, Sangeetha Hariharan wrote:
> > > Can we get a confirmation on the approach we want to take?
> > >
> > > 1. We are going to fix the router for  the case - " if the router 
> > > has
> > upgraded its scripts, and then adjust how we call edithosts.sh" ?
> > > 2. Going to suggest a reboot (start and stop) of all the system 
> > > Vms
> > (SSVM,CPVM and routers) as part of Upgrade procedure?
> >
> > Option 2 is my preference.  Option 1 requires more testing, etc...
> >
> 

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Chip Childers <ch...@sungard.com>.
On Thu, Mar 28, 2013 at 11:28:33AM -0700, Sangeetha Hariharan wrote:
> Then we can go with the option of reboot (start and stop) of all the system Vms (SSVM,CPVM and routers) as part of Upgrade procedure ?

Sounds like it.  Care to add a note to the release notes wiki page to
this effect?

> 
> -Thanks 
> Sangeetha
> 
> -----Original Message-----
> From: Marcus Sorensen [mailto:shadowsor@gmail.com] 
> Sent: Thursday, March 28, 2013 11:21 AM
> To: Chip Childers
> Cc: dev@cloudstack.apache.org
> Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> 
> I'm also not confident that option 1 really fixes anything. The user has to reboot their system VMS eventually, and even if we fix this one thing to help them get by until they do, what other lingering issues will arise?
> On Mar 28, 2013 11:38 AM, "Chip Childers" <ch...@sungard.com> wrote:
> 
> > On Thu, Mar 28, 2013 at 09:51:16AM -0700, Sangeetha Hariharan wrote:
> > > Can we get a confirmation on the approach we want to take?
> > >
> > > 1. We are going to fix the router for  the case - " if the router 
> > > has
> > upgraded its scripts, and then adjust how we call edithosts.sh" ?
> > > 2. Going to suggest a reboot (start and stop) of all the system Vms
> > (SSVM,CPVM and routers) as part of Upgrade procedure?
> >
> > Option 2 is my preference.  Option 1 requires more testing, etc...
> >
> 

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Sangeetha Hariharan <Sa...@citrix.com>.
Then we can go with the option of reboot (start and stop) of all the system Vms (SSVM,CPVM and routers) as part of Upgrade procedure ?

-Thanks 
Sangeetha

-----Original Message-----
From: Marcus Sorensen [mailto:shadowsor@gmail.com] 
Sent: Thursday, March 28, 2013 11:21 AM
To: Chip Childers
Cc: dev@cloudstack.apache.org
Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

I'm also not confident that option 1 really fixes anything. The user has to reboot their system VMS eventually, and even if we fix this one thing to help them get by until they do, what other lingering issues will arise?
On Mar 28, 2013 11:38 AM, "Chip Childers" <ch...@sungard.com> wrote:

> On Thu, Mar 28, 2013 at 09:51:16AM -0700, Sangeetha Hariharan wrote:
> > Can we get a confirmation on the approach we want to take?
> >
> > 1. We are going to fix the router for  the case - " if the router 
> > has
> upgraded its scripts, and then adjust how we call edithosts.sh" ?
> > 2. Going to suggest a reboot (start and stop) of all the system Vms
> (SSVM,CPVM and routers) as part of Upgrade procedure?
>
> Option 2 is my preference.  Option 1 requires more testing, etc...
>

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
I'm also not confident that option 1 really fixes anything. The user has to
reboot their system VMS eventually, and even if we fix this one thing to
help them get by until they do, what other lingering issues will arise?
On Mar 28, 2013 11:38 AM, "Chip Childers" <ch...@sungard.com> wrote:

> On Thu, Mar 28, 2013 at 09:51:16AM -0700, Sangeetha Hariharan wrote:
> > Can we get a confirmation on the approach we want to take?
> >
> > 1. We are going to fix the router for  the case - " if the router has
> upgraded its scripts, and then adjust how we call edithosts.sh" ?
> > 2. Going to suggest a reboot (start and stop) of all the system Vms
> (SSVM,CPVM and routers) as part of Upgrade procedure?
>
> Option 2 is my preference.  Option 1 requires more testing, etc...
>

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Chip Childers <ch...@sungard.com>.
On Thu, Mar 28, 2013 at 09:51:16AM -0700, Sangeetha Hariharan wrote:
> Can we get a confirmation on the approach we want to take?
> 
> 1. We are going to fix the router for  the case - " if the router has upgraded its scripts, and then adjust how we call edithosts.sh" ?
> 2. Going to suggest a reboot (start and stop) of all the system Vms (SSVM,CPVM and routers) as part of Upgrade procedure?

Option 2 is my preference.  Option 1 requires more testing, etc...

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Sangeetha Hariharan <Sa...@citrix.com>.
Can we get a confirmation on the approach we want to take?

1. We are going to fix the router for  the case - " if the router has upgraded its scripts, and then adjust how we call edithosts.sh" ?
2. Going to suggest a reboot (start and stop) of all the system Vms (SSVM,CPVM and routers) as part of Upgrade procedure?

-Thanks
Sangeetha

-----Original Message-----
From: Marcus Sorensen [mailto:shadowsor@gmail.com] 
Sent: Wednesday, March 27, 2013 10:02 PM
To: dev@cloudstack.apache.org
Cc: Sangeetha Hariharan
Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Ok, found the issue. The 4.0 script in the system vm that adds DHCP entries parses args like this:

# edithosts.sh -- edit the dhcphosts file on the routing domain # $mac : the mac address # $ip : the associated ip address # $host : the hostname # $4 : default router # $5 : nameserver on default nic # $6 : comma separated static routes

mac=$1
ip=$2
host=$3
dflt=$4
dns=$5
routes=$6

And the script in 4.1 parses args like this:

while getopts 'm:4:h:d:n:s:6:u:N' OPTION do
  case $OPTION in
  m)    mac="$OPTARG"
        ;;
  4)    ipv4="$OPTARG"
        ;;
  6)    ipv6="$OPTARG"
        ;;
  u)    duid="$OPTARG"
        ;;
  h)    host="$OPTARG"
        ;;
  d)    dflt="$OPTARG"
        ;;
  n)    dns="$OPTARG"
        ;;
  s)    routes="$OPTARG"
        ;;
  N)    nondefault=1
        ;;
  ?)    usage
        exit 2
        ;;
  esac
done

So in 4.0 it's looking at flags as though they're arguments, which is why we get garbage in the dhcp file. In the router log we see the results (first line is a working one, second line isn't)

Mar 28 04:41:54 r-5-VM cloud: edithosts: update 02:00:2b:58:00:01
10.1.1.6 ff9b5970-d095-4602-aa7d-671e3a7535da to hosts Mar 28 04:48:01 r-5-VM cloud: edithosts: update -4 10.1.1.245 -m to hosts

I don't see an easy way around this. We could perhaps detect if the router has upgraded its scripts, and then adjust how we call edithosts.sh accordingly. Anyone want to take that on? Is this the only issue? I'm assuming people will need to reboot their system vms anyway for other features.

On Wed, Mar 27, 2013 at 9:27 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> We can look into it, my guess is that an existing script now has new 
> and/or different parameters. Perhaps it could be adjusted to be 
> backward compatible so people can reboot at their leisure. All just guesswork.
>
> On Mar 27, 2013 9:21 PM, "Marcus Sorensen" <sh...@gmail.com> wrote:
>>
>> Hard to say. Sometimes functionality/implementation changes even 
>> though the feature is the same.
>>
>> On Mar 27, 2013 9:20 PM, "David Nalley" <da...@gnsa.us> wrote:
>>>
>>> On Wed, Mar 27, 2013 at 11:13 PM, Marcus Sorensen 
>>> <sh...@gmail.com>
>>> wrote:
>>> > Just to clarify a step further, this should have been the case 
>>> > with 3.x to
>>> > 4.0 as well. We had all of these new vpc scripts that added brand 
>>> > new functionality that needed to go on the virtual routers. The 
>>> > system VM template stayed the same, even though new scripts were 
>>> > added via systemvm.iso.
>>>
>>>
>>> That said, why would new functionality make existing functionality 
>>> stop working in a system VM.
>>>
>>> --David

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
Ok, found the issue. The 4.0 script in the system vm that adds DHCP
entries parses args like this:

# edithosts.sh -- edit the dhcphosts file on the routing domain
# $mac : the mac address
# $ip : the associated ip address
# $host : the hostname
# $4 : default router
# $5 : nameserver on default nic
# $6 : comma separated static routes

mac=$1
ip=$2
host=$3
dflt=$4
dns=$5
routes=$6

And the script in 4.1 parses args like this:

while getopts 'm:4:h:d:n:s:6:u:N' OPTION
do
  case $OPTION in
  m)    mac="$OPTARG"
        ;;
  4)    ipv4="$OPTARG"
        ;;
  6)    ipv6="$OPTARG"
        ;;
  u)    duid="$OPTARG"
        ;;
  h)    host="$OPTARG"
        ;;
  d)    dflt="$OPTARG"
        ;;
  n)    dns="$OPTARG"
        ;;
  s)    routes="$OPTARG"
        ;;
  N)    nondefault=1
        ;;
  ?)    usage
        exit 2
        ;;
  esac
done

So in 4.0 it's looking at flags as though they're arguments, which is
why we get garbage in the dhcp file. In the router log we see the
results (first line is a working one, second line isn't)

Mar 28 04:41:54 r-5-VM cloud: edithosts: update 02:00:2b:58:00:01
10.1.1.6 ff9b5970-d095-4602-aa7d-671e3a7535da to hosts
Mar 28 04:48:01 r-5-VM cloud: edithosts: update -4 10.1.1.245 -m to hosts

I don't see an easy way around this. We could perhaps detect if the
router has upgraded its scripts, and then adjust how we call
edithosts.sh accordingly. Anyone want to take that on? Is this the
only issue? I'm assuming people will need to reboot their system vms
anyway for other features.

On Wed, Mar 27, 2013 at 9:27 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> We can look into it, my guess is that an existing script now has new and/or
> different parameters. Perhaps it could be adjusted to be backward compatible
> so people can reboot at their leisure. All just guesswork.
>
> On Mar 27, 2013 9:21 PM, "Marcus Sorensen" <sh...@gmail.com> wrote:
>>
>> Hard to say. Sometimes functionality/implementation changes even though
>> the feature is the same.
>>
>> On Mar 27, 2013 9:20 PM, "David Nalley" <da...@gnsa.us> wrote:
>>>
>>> On Wed, Mar 27, 2013 at 11:13 PM, Marcus Sorensen <sh...@gmail.com>
>>> wrote:
>>> > Just to clarify a step further, this should have been the case with 3.x
>>> > to
>>> > 4.0 as well. We had all of these new vpc scripts that added brand new
>>> > functionality that needed to go on the virtual routers. The system VM
>>> > template stayed the same, even though new scripts were added via
>>> > systemvm.iso.
>>>
>>>
>>> That said, why would new functionality make existing functionality
>>> stop working in a system VM.
>>>
>>> --David

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
We can look into it, my guess is that an existing script now has new and/or
different parameters. Perhaps it could be adjusted to be backward
compatible so people can reboot at their leisure. All just guesswork.
On Mar 27, 2013 9:21 PM, "Marcus Sorensen" <sh...@gmail.com> wrote:

> Hard to say. Sometimes functionality/implementation changes even though
> the feature is the same.
> On Mar 27, 2013 9:20 PM, "David Nalley" <da...@gnsa.us> wrote:
>
>> On Wed, Mar 27, 2013 at 11:13 PM, Marcus Sorensen <sh...@gmail.com>
>> wrote:
>> > Just to clarify a step further, this should have been the case with 3.x
>> to
>> > 4.0 as well. We had all of these new vpc scripts that added brand new
>> > functionality that needed to go on the virtual routers. The system VM
>> > template stayed the same, even though new scripts were added via
>> > systemvm.iso.
>>
>>
>> That said, why would new functionality make existing functionality
>> stop working in a system VM.
>>
>> --David
>>
>

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
Hard to say. Sometimes functionality/implementation changes even though the
feature is the same.
On Mar 27, 2013 9:20 PM, "David Nalley" <da...@gnsa.us> wrote:

> On Wed, Mar 27, 2013 at 11:13 PM, Marcus Sorensen <sh...@gmail.com>
> wrote:
> > Just to clarify a step further, this should have been the case with 3.x
> to
> > 4.0 as well. We had all of these new vpc scripts that added brand new
> > functionality that needed to go on the virtual routers. The system VM
> > template stayed the same, even though new scripts were added via
> > systemvm.iso.
>
>
> That said, why would new functionality make existing functionality
> stop working in a system VM.
>
> --David
>

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by David Nalley <da...@gnsa.us>.
On Wed, Mar 27, 2013 at 11:13 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> Just to clarify a step further, this should have been the case with 3.x to
> 4.0 as well. We had all of these new vpc scripts that added brand new
> functionality that needed to go on the virtual routers. The system VM
> template stayed the same, even though new scripts were added via
> systemvm.iso.


That said, why would new functionality make existing functionality
stop working in a system VM.

--David

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
Just to clarify a step further, this should have been the case with 3.x to
4.0 as well. We had all of these new vpc scripts that added brand new
functionality that needed to go on the virtual routers. The system VM
template stayed the same, even though new scripts were added via
systemvm.iso.
On Mar 27, 2013 9:04 PM, "Marcus Sorensen" <sh...@gmail.com> wrote:

> There are two things, upgrade of system VM, and upgrade of software on
> system VM. Any time you start a system VM the latest scripts get copied to
> it. This isn't the same as using the new ipv6 template. I can understand
> needing to reboot the system VMS if the scripts change, but its not the
> same as upgrading the OS in the system VM.
> On Mar 27, 2013 8:59 PM, "David Nalley" <da...@gnsa.us> wrote:
>
>> >> Deploying Vms in existing networks succeed. But Vms are not given any
>> ip address.
>> >> In router, I see that the mac address of the Vm is not populated
>> correctly.
>> >> root@r-4-VM:~# cat /etc/dhcphosts.txt
>> >> 02:00:42:47:00:01,set:10_1_1_17,10.1.1.17,test123,infinite
>> >> -4,set:10_1_1_195,10.1.1.195,-m,infinite
>> >> root@r-4-VM:~#
>> >>
>> >> After stopping and starting of the existing routers , Vm deployment
>> succeeds.
>> >>
>> >> Seems like all the routers need to be stopped and started after
>> upgrade.
>> >
>> > Forgive the question, but I actually haven't upgraded a production
>> > environment yet!  Is this normal to have to restart the VR's after a
>> > major update?  I *think* I remember that this is, but I just want to
>> > confirm.
>> >
>>
>> So it's expected if we change the sysvms materially - but I would have
>> expected them to have continued working.
>> That said, I thought update of sysvms was optional and only necessary
>> if you wanted IPv6-enabled system VMs.
>> Can someone canonically answer this? Things like this will affect
>> install documentation.
>>
>

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
There are two things, upgrade of system VM, and upgrade of software on
system VM. Any time you start a system VM the latest scripts get copied to
it. This isn't the same as using the new ipv6 template. I can understand
needing to reboot the system VMS if the scripts change, but its not the
same as upgrading the OS in the system VM.
On Mar 27, 2013 8:59 PM, "David Nalley" <da...@gnsa.us> wrote:

> >> Deploying Vms in existing networks succeed. But Vms are not given any
> ip address.
> >> In router, I see that the mac address of the Vm is not populated
> correctly.
> >> root@r-4-VM:~# cat /etc/dhcphosts.txt
> >> 02:00:42:47:00:01,set:10_1_1_17,10.1.1.17,test123,infinite
> >> -4,set:10_1_1_195,10.1.1.195,-m,infinite
> >> root@r-4-VM:~#
> >>
> >> After stopping and starting of the existing routers , Vm deployment
> succeeds.
> >>
> >> Seems like all the routers need to be stopped and started after upgrade.
> >
> > Forgive the question, but I actually haven't upgraded a production
> > environment yet!  Is this normal to have to restart the VR's after a
> > major update?  I *think* I remember that this is, but I just want to
> > confirm.
> >
>
> So it's expected if we change the sysvms materially - but I would have
> expected them to have continued working.
> That said, I thought update of sysvms was optional and only necessary
> if you wanted IPv6-enabled system VMs.
> Can someone canonically answer this? Things like this will affect
> install documentation.
>

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by David Nalley <da...@gnsa.us>.
>> Deploying Vms in existing networks succeed. But Vms are not given any ip address.
>> In router, I see that the mac address of the Vm is not populated correctly.
>> root@r-4-VM:~# cat /etc/dhcphosts.txt
>> 02:00:42:47:00:01,set:10_1_1_17,10.1.1.17,test123,infinite
>> -4,set:10_1_1_195,10.1.1.195,-m,infinite
>> root@r-4-VM:~#
>>
>> After stopping and starting of the existing routers , Vm deployment succeeds.
>>
>> Seems like all the routers need to be stopped and started after upgrade.
>
> Forgive the question, but I actually haven't upgraded a production
> environment yet!  Is this normal to have to restart the VR's after a
> major update?  I *think* I remember that this is, but I just want to
> confirm.
>

So it's expected if we change the sysvms materially - but I would have
expected them to have continued working.
That said, I thought update of sysvms was optional and only necessary
if you wanted IPv6-enabled system VMs.
Can someone canonically answer this? Things like this will affect
install documentation.

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
It makes sense that the system VMS would need to be restarted since we have
new software for them too (new systemvm.iso).
On Mar 27, 2013 8:16 PM, "Chip Childers" <ch...@sungard.com> wrote:

> On Wed, Mar 27, 2013 at 06:43:50PM -0700, Sangeetha Hariharan wrote:
> > I tried upgrade from 4.0 -> 4.1 using Rhel6.3 binaries and Xenhost in
> Advanced zone set up and upgrade succeeds.
> >
> > After upgrade , I was able to deploy Vms in new network without any
> issues.
> >
>
> That's good news!  Is anyone trying Ubuntu now?
>
> > Deploying Vms in existing networks succeed. But Vms are not given any ip
> address.
> > In router, I see that the mac address of the Vm is not populated
> correctly.
> > root@r-4-VM:~# cat /etc/dhcphosts.txt
> > 02:00:42:47:00:01,set:10_1_1_17,10.1.1.17,test123,infinite
> > -4,set:10_1_1_195,10.1.1.195,-m,infinite
> > root@r-4-VM:~#
> >
> > After stopping and starting of the existing routers , Vm deployment
> succeeds.
> >
> > Seems like all the routers need to be stopped and started after upgrade.
>
> Forgive the question, but I actually haven't upgraded a production
> environment yet!  Is this normal to have to restart the VR's after a
> major update?  I *think* I remember that this is, but I just want to
> confirm.
>
> > I am not sure if there is also a need to stop and start the SSVM and
> CPVM.
> > Console proxy view for Vms and registering of templates work fine even
> without having to stop and start the SSVM and CPVM.
> >
> > Also vhd-utils need to copied over to
> /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/ . It is good
> to document this step explicitly , even though we get the following message
> when we run the " yum update cloud-*" command:
> >
>
> Sangeetha, can you please add this specific request for release notes
> doc update to the tracking page:
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Release+Notes
>
>
> > Please download vhd-util from
> http://download.cloud.com.s3.amazonaws.com/tools/vhd-util and put it in
> > /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/
> >
> > -Thanks
> > Sangeetha
> >
> > -----Original Message-----
> > From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> > Sent: Wednesday, March 27, 2013 3:18 PM
> > To: dev@cloudstack.apache.org
> > Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> >
> > Ok. They may need to do something similar for Ubuntu, or perhaps it's
> already taken care of.
> >
> > On Wed, Mar 27, 2013 at 3:37 PM, Sudha Ponnaganti <
> sudha.ponnaganti@citrix.com> wrote:
> > > No - not done on ubuntu as upgrade hasn't worked at all so far even on
> > > CentOS We will test it if CentOS works. These are the two upgrades
> > > that are being tested [1]
> > >
> > > [1]
> > > https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.1+
> > > Compatibility+Matrix
> > >
> > >
> > > -----Original Message-----
> > > From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> > > Sent: Wednesday, March 27, 2013 2:27 PM
> > > To: dev@cloudstack.apache.org
> > > Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> > >
> > > It should be fixed. This should be less difficult in the future, as
> long as we're not moving the config directories around again. I first tried
> copying the files over during the upgrade prior to the old RPMs being
> removed, but RPM's config(noreplace) only seems to work on files that it
> knew were in the previous RPM being upgraded. So I settled on moving the
> /etc/cloud directory to /etc/cloud.rpmsave, and then cherry picking the
> db.properties, agent.properties, and db key files into the new config
> directory. Then I looked at the tomcat6.conf and server.xml links and
> recreated new ones in /etc/cloudstack/management based on whether the old
> ones were ssl or non-ssl. The files themselves had changed between
> versions, so I did this rather than copying anything.
> > >
> > > Now the big question, has anyone tested upgrades on Ubuntu 12.04? Or
> do we plan to?
> > >
> > > On Wed, Mar 27, 2013 at 11:11 AM, Pradeep Soundararajan <
> pradeep.soundararajan@citrix.com> wrote:
> > >> These are my observations I have captured during my testing:
> > >>
> > >> 1)      'service cloudstack-management start' is failing for the
> first time since it did not find tomcat6.conf and server.xml. This will get
> created (symb links) only if you execute "cloudstack-setup-management" for
> the first time after the upgrade since this will be treated as a fresh
> install because rpm names and locations have been changed from 4.1.  I have
> found the symb links are getting updated during the upgrade only if the
> upgrade path is present already. In our situation upgrade path is pretty
> new.
> > >> 2)      I have observed db.properties of 4.1 is different from 4.0.
>  I have observed there is an issue with db.properties initially, that is
> the reason I have tried to redploy DB and launched 4.1 MS. But realized and
> got to know from QA that we should not redploy db after the upgrade.  Let
> me know how to handle the situation if db.properties are changed in 4.1.
> > >>
> > >> I was trying to keep a check in cloud.spec incase cloud-client is
> present in the system or not. Then I was trying to provide the symb link of
> the files which are needed for the upgrade like db.properties, tomcat6.conf
> etc from the old path /etc/cloud/management to the new path
> /etc/cloudstack/management.
> > >>
> > >> I have tried these below in cloud.spec but went in vain:
> > >>
> > >> %define _rpm_check_ver %(`rpm -q cloud-client-4.0.0 > /dev/null`) %if
> > >> "%{?_rpm_check_ver}" != "0"
> > >> Obsoletes: cloud-client < 4.1.0
> > >> %endif
> > >>
> > >> I hope Marcus is looking at this now.  Let's wait for his feedback.
> > >>
> > >> Thanks,
> > >> Pradeep S
> > >>
> > >>
> > >> -----Original Message-----
> > >> From: Sudha Ponnaganti [mailto:sudha.ponnaganti@citrix.com]
> > >> Sent: Tuesday, March 26, 2013 2:45 AM
> > >> To: dev@cloudstack.apache.org
> > >> Subject: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> > >>
> > >> Hi,
> > >>
> > >> Requesting help to resolve the following issue, if you have done
> upgrade.
> > >> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
> > >>
> > >> Upgrade is failing - if there is anyone that can take a look at it
> during US time zone that would be great.
> > >>
> > >> Thanks
> > >> /Sudha
> >
>

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Chip Childers <ch...@sungard.com>.
On Wed, Mar 27, 2013 at 06:43:50PM -0700, Sangeetha Hariharan wrote:
> I tried upgrade from 4.0 -> 4.1 using Rhel6.3 binaries and Xenhost in Advanced zone set up and upgrade succeeds.
> 
> After upgrade , I was able to deploy Vms in new network without any issues.
>

That's good news!  Is anyone trying Ubuntu now?

> Deploying Vms in existing networks succeed. But Vms are not given any ip address.
> In router, I see that the mac address of the Vm is not populated correctly.
> root@r-4-VM:~# cat /etc/dhcphosts.txt
> 02:00:42:47:00:01,set:10_1_1_17,10.1.1.17,test123,infinite
> -4,set:10_1_1_195,10.1.1.195,-m,infinite
> root@r-4-VM:~# 
> 
> After stopping and starting of the existing routers , Vm deployment succeeds.
> 
> Seems like all the routers need to be stopped and started after upgrade.

Forgive the question, but I actually haven't upgraded a production
environment yet!  Is this normal to have to restart the VR's after a
major update?  I *think* I remember that this is, but I just want to
confirm.

> I am not sure if there is also a need to stop and start the SSVM and CPVM.
> Console proxy view for Vms and registering of templates work fine even without having to stop and start the SSVM and CPVM.
> 
> Also vhd-utils need to copied over to /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/ . It is good to document this step explicitly , even though we get the following message when we run the " yum update cloud-*" command:
>

Sangeetha, can you please add this specific request for release notes
doc update to the tracking page:

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Release+Notes


> Please download vhd-util from http://download.cloud.com.s3.amazonaws.com/tools/vhd-util and put it in
> /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/
> 
> -Thanks
> Sangeetha
> 
> -----Original Message-----
> From: Marcus Sorensen [mailto:shadowsor@gmail.com] 
> Sent: Wednesday, March 27, 2013 3:18 PM
> To: dev@cloudstack.apache.org
> Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> 
> Ok. They may need to do something similar for Ubuntu, or perhaps it's already taken care of.
> 
> On Wed, Mar 27, 2013 at 3:37 PM, Sudha Ponnaganti <su...@citrix.com> wrote:
> > No - not done on ubuntu as upgrade hasn't worked at all so far even on 
> > CentOS We will test it if CentOS works. These are the two upgrades 
> > that are being tested [1]
> >
> > [1] 
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.1+
> > Compatibility+Matrix
> >
> >
> > -----Original Message-----
> > From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> > Sent: Wednesday, March 27, 2013 2:27 PM
> > To: dev@cloudstack.apache.org
> > Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> >
> > It should be fixed. This should be less difficult in the future, as long as we're not moving the config directories around again. I first tried copying the files over during the upgrade prior to the old RPMs being removed, but RPM's config(noreplace) only seems to work on files that it knew were in the previous RPM being upgraded. So I settled on moving the /etc/cloud directory to /etc/cloud.rpmsave, and then cherry picking the db.properties, agent.properties, and db key files into the new config directory. Then I looked at the tomcat6.conf and server.xml links and recreated new ones in /etc/cloudstack/management based on whether the old ones were ssl or non-ssl. The files themselves had changed between versions, so I did this rather than copying anything.
> >
> > Now the big question, has anyone tested upgrades on Ubuntu 12.04? Or do we plan to?
> >
> > On Wed, Mar 27, 2013 at 11:11 AM, Pradeep Soundararajan <pr...@citrix.com> wrote:
> >> These are my observations I have captured during my testing:
> >>
> >> 1)      'service cloudstack-management start' is failing for the first time since it did not find tomcat6.conf and server.xml. This will get created (symb links) only if you execute "cloudstack-setup-management" for the first time after the upgrade since this will be treated as a fresh install because rpm names and locations have been changed from 4.1.  I have found the symb links are getting updated during the upgrade only if the upgrade path is present already. In our situation upgrade path is pretty new.
> >> 2)      I have observed db.properties of 4.1 is different from 4.0.  I have observed there is an issue with db.properties initially, that is the reason I have tried to redploy DB and launched 4.1 MS. But realized and got to know from QA that we should not redploy db after the upgrade.  Let me know how to handle the situation if db.properties are changed in 4.1.
> >>
> >> I was trying to keep a check in cloud.spec incase cloud-client is present in the system or not. Then I was trying to provide the symb link of the files which are needed for the upgrade like db.properties, tomcat6.conf etc from the old path /etc/cloud/management to the new path /etc/cloudstack/management.
> >>
> >> I have tried these below in cloud.spec but went in vain:
> >>
> >> %define _rpm_check_ver %(`rpm -q cloud-client-4.0.0 > /dev/null`) %if 
> >> "%{?_rpm_check_ver}" != "0"
> >> Obsoletes: cloud-client < 4.1.0
> >> %endif
> >>
> >> I hope Marcus is looking at this now.  Let's wait for his feedback.
> >>
> >> Thanks,
> >> Pradeep S
> >>
> >>
> >> -----Original Message-----
> >> From: Sudha Ponnaganti [mailto:sudha.ponnaganti@citrix.com]
> >> Sent: Tuesday, March 26, 2013 2:45 AM
> >> To: dev@cloudstack.apache.org
> >> Subject: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
> >>
> >> Hi,
> >>
> >> Requesting help to resolve the following issue, if you have done upgrade.
> >> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
> >>
> >> Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.
> >>
> >> Thanks
> >> /Sudha
> 

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Sangeetha Hariharan <Sa...@citrix.com>.
I tried upgrade from 4.0 -> 4.1 using Rhel6.3 binaries and Xenhost in Advanced zone set up and upgrade succeeds.

After upgrade , I was able to deploy Vms in new network without any issues.

Deploying Vms in existing networks succeed. But Vms are not given any ip address.
In router, I see that the mac address of the Vm is not populated correctly.
root@r-4-VM:~# cat /etc/dhcphosts.txt
02:00:42:47:00:01,set:10_1_1_17,10.1.1.17,test123,infinite
-4,set:10_1_1_195,10.1.1.195,-m,infinite
root@r-4-VM:~# 

After stopping and starting of the existing routers , Vm deployment succeeds.

Seems like all the routers need to be stopped and started after upgrade.
I am not sure if there is also a need to stop and start the SSVM and CPVM.
Console proxy view for Vms and registering of templates work fine even without having to stop and start the SSVM and CPVM.

Also vhd-utils need to copied over to /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/ . It is good to document this step explicitly , even though we get the following message when we run the " yum update cloud-*" command:

Please download vhd-util from http://download.cloud.com.s3.amazonaws.com/tools/vhd-util and put it in
/usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/

-Thanks
Sangeetha

-----Original Message-----
From: Marcus Sorensen [mailto:shadowsor@gmail.com] 
Sent: Wednesday, March 27, 2013 3:18 PM
To: dev@cloudstack.apache.org
Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Ok. They may need to do something similar for Ubuntu, or perhaps it's already taken care of.

On Wed, Mar 27, 2013 at 3:37 PM, Sudha Ponnaganti <su...@citrix.com> wrote:
> No - not done on ubuntu as upgrade hasn't worked at all so far even on 
> CentOS We will test it if CentOS works. These are the two upgrades 
> that are being tested [1]
>
> [1] 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.1+
> Compatibility+Matrix
>
>
> -----Original Message-----
> From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> Sent: Wednesday, March 27, 2013 2:27 PM
> To: dev@cloudstack.apache.org
> Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
>
> It should be fixed. This should be less difficult in the future, as long as we're not moving the config directories around again. I first tried copying the files over during the upgrade prior to the old RPMs being removed, but RPM's config(noreplace) only seems to work on files that it knew were in the previous RPM being upgraded. So I settled on moving the /etc/cloud directory to /etc/cloud.rpmsave, and then cherry picking the db.properties, agent.properties, and db key files into the new config directory. Then I looked at the tomcat6.conf and server.xml links and recreated new ones in /etc/cloudstack/management based on whether the old ones were ssl or non-ssl. The files themselves had changed between versions, so I did this rather than copying anything.
>
> Now the big question, has anyone tested upgrades on Ubuntu 12.04? Or do we plan to?
>
> On Wed, Mar 27, 2013 at 11:11 AM, Pradeep Soundararajan <pr...@citrix.com> wrote:
>> These are my observations I have captured during my testing:
>>
>> 1)      'service cloudstack-management start' is failing for the first time since it did not find tomcat6.conf and server.xml. This will get created (symb links) only if you execute "cloudstack-setup-management" for the first time after the upgrade since this will be treated as a fresh install because rpm names and locations have been changed from 4.1.  I have found the symb links are getting updated during the upgrade only if the upgrade path is present already. In our situation upgrade path is pretty new.
>> 2)      I have observed db.properties of 4.1 is different from 4.0.  I have observed there is an issue with db.properties initially, that is the reason I have tried to redploy DB and launched 4.1 MS. But realized and got to know from QA that we should not redploy db after the upgrade.  Let me know how to handle the situation if db.properties are changed in 4.1.
>>
>> I was trying to keep a check in cloud.spec incase cloud-client is present in the system or not. Then I was trying to provide the symb link of the files which are needed for the upgrade like db.properties, tomcat6.conf etc from the old path /etc/cloud/management to the new path /etc/cloudstack/management.
>>
>> I have tried these below in cloud.spec but went in vain:
>>
>> %define _rpm_check_ver %(`rpm -q cloud-client-4.0.0 > /dev/null`) %if 
>> "%{?_rpm_check_ver}" != "0"
>> Obsoletes: cloud-client < 4.1.0
>> %endif
>>
>> I hope Marcus is looking at this now.  Let's wait for his feedback.
>>
>> Thanks,
>> Pradeep S
>>
>>
>> -----Original Message-----
>> From: Sudha Ponnaganti [mailto:sudha.ponnaganti@citrix.com]
>> Sent: Tuesday, March 26, 2013 2:45 AM
>> To: dev@cloudstack.apache.org
>> Subject: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
>>
>> Hi,
>>
>> Requesting help to resolve the following issue, if you have done upgrade.
>> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
>>
>> Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.
>>
>> Thanks
>> /Sudha

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
Ok. They may need to do something similar for Ubuntu, or perhaps it's
already taken care of.

On Wed, Mar 27, 2013 at 3:37 PM, Sudha Ponnaganti
<su...@citrix.com> wrote:
> No - not done on ubuntu as upgrade hasn't worked at all so far even on CentOS
> We will test it if CentOS works. These are the two upgrades that are being tested [1]
>
> [1] https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.1+Compatibility+Matrix
>
>
> -----Original Message-----
> From: Marcus Sorensen [mailto:shadowsor@gmail.com]
> Sent: Wednesday, March 27, 2013 2:27 PM
> To: dev@cloudstack.apache.org
> Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
>
> It should be fixed. This should be less difficult in the future, as long as we're not moving the config directories around again. I first tried copying the files over during the upgrade prior to the old RPMs being removed, but RPM's config(noreplace) only seems to work on files that it knew were in the previous RPM being upgraded. So I settled on moving the /etc/cloud directory to /etc/cloud.rpmsave, and then cherry picking the db.properties, agent.properties, and db key files into the new config directory. Then I looked at the tomcat6.conf and server.xml links and recreated new ones in /etc/cloudstack/management based on whether the old ones were ssl or non-ssl. The files themselves had changed between versions, so I did this rather than copying anything.
>
> Now the big question, has anyone tested upgrades on Ubuntu 12.04? Or do we plan to?
>
> On Wed, Mar 27, 2013 at 11:11 AM, Pradeep Soundararajan <pr...@citrix.com> wrote:
>> These are my observations I have captured during my testing:
>>
>> 1)      'service cloudstack-management start' is failing for the first time since it did not find tomcat6.conf and server.xml. This will get created (symb links) only if you execute "cloudstack-setup-management" for the first time after the upgrade since this will be treated as a fresh install because rpm names and locations have been changed from 4.1.  I have found the symb links are getting updated during the upgrade only if the upgrade path is present already. In our situation upgrade path is pretty new.
>> 2)      I have observed db.properties of 4.1 is different from 4.0.  I have observed there is an issue with db.properties initially, that is the reason I have tried to redploy DB and launched 4.1 MS. But realized and got to know from QA that we should not redploy db after the upgrade.  Let me know how to handle the situation if db.properties are changed in 4.1.
>>
>> I was trying to keep a check in cloud.spec incase cloud-client is present in the system or not. Then I was trying to provide the symb link of the files which are needed for the upgrade like db.properties, tomcat6.conf etc from the old path /etc/cloud/management to the new path /etc/cloudstack/management.
>>
>> I have tried these below in cloud.spec but went in vain:
>>
>> %define _rpm_check_ver %(`rpm -q cloud-client-4.0.0 > /dev/null`) %if
>> "%{?_rpm_check_ver}" != "0"
>> Obsoletes: cloud-client < 4.1.0
>> %endif
>>
>> I hope Marcus is looking at this now.  Let's wait for his feedback.
>>
>> Thanks,
>> Pradeep S
>>
>>
>> -----Original Message-----
>> From: Sudha Ponnaganti [mailto:sudha.ponnaganti@citrix.com]
>> Sent: Tuesday, March 26, 2013 2:45 AM
>> To: dev@cloudstack.apache.org
>> Subject: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
>>
>> Hi,
>>
>> Requesting help to resolve the following issue, if you have done upgrade.
>> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
>>
>> Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.
>>
>> Thanks
>> /Sudha

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Sudha Ponnaganti <su...@citrix.com>.
No - not done on ubuntu as upgrade hasn't worked at all so far even on CentOS
We will test it if CentOS works. These are the two upgrades that are being tested [1]

[1] https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+4.1+Compatibility+Matrix


-----Original Message-----
From: Marcus Sorensen [mailto:shadowsor@gmail.com] 
Sent: Wednesday, March 27, 2013 2:27 PM
To: dev@cloudstack.apache.org
Subject: Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

It should be fixed. This should be less difficult in the future, as long as we're not moving the config directories around again. I first tried copying the files over during the upgrade prior to the old RPMs being removed, but RPM's config(noreplace) only seems to work on files that it knew were in the previous RPM being upgraded. So I settled on moving the /etc/cloud directory to /etc/cloud.rpmsave, and then cherry picking the db.properties, agent.properties, and db key files into the new config directory. Then I looked at the tomcat6.conf and server.xml links and recreated new ones in /etc/cloudstack/management based on whether the old ones were ssl or non-ssl. The files themselves had changed between versions, so I did this rather than copying anything.

Now the big question, has anyone tested upgrades on Ubuntu 12.04? Or do we plan to?

On Wed, Mar 27, 2013 at 11:11 AM, Pradeep Soundararajan <pr...@citrix.com> wrote:
> These are my observations I have captured during my testing:
>
> 1)      'service cloudstack-management start' is failing for the first time since it did not find tomcat6.conf and server.xml. This will get created (symb links) only if you execute "cloudstack-setup-management" for the first time after the upgrade since this will be treated as a fresh install because rpm names and locations have been changed from 4.1.  I have found the symb links are getting updated during the upgrade only if the upgrade path is present already. In our situation upgrade path is pretty new.
> 2)      I have observed db.properties of 4.1 is different from 4.0.  I have observed there is an issue with db.properties initially, that is the reason I have tried to redploy DB and launched 4.1 MS. But realized and got to know from QA that we should not redploy db after the upgrade.  Let me know how to handle the situation if db.properties are changed in 4.1.
>
> I was trying to keep a check in cloud.spec incase cloud-client is present in the system or not. Then I was trying to provide the symb link of the files which are needed for the upgrade like db.properties, tomcat6.conf etc from the old path /etc/cloud/management to the new path /etc/cloudstack/management.
>
> I have tried these below in cloud.spec but went in vain:
>
> %define _rpm_check_ver %(`rpm -q cloud-client-4.0.0 > /dev/null`) %if 
> "%{?_rpm_check_ver}" != "0"
> Obsoletes: cloud-client < 4.1.0
> %endif
>
> I hope Marcus is looking at this now.  Let's wait for his feedback.
>
> Thanks,
> Pradeep S
>
>
> -----Original Message-----
> From: Sudha Ponnaganti [mailto:sudha.ponnaganti@citrix.com]
> Sent: Tuesday, March 26, 2013 2:45 AM
> To: dev@cloudstack.apache.org
> Subject: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
>
> Hi,
>
> Requesting help to resolve the following issue, if you have done upgrade.
> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
>
> Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.
>
> Thanks
> /Sudha

Re: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Marcus Sorensen <sh...@gmail.com>.
It should be fixed. This should be less difficult in the future, as
long as we're not moving the config directories around again. I first
tried copying the files over during the upgrade prior to the old RPMs
being removed, but RPM's config(noreplace) only seems to work on files
that it knew were in the previous RPM being upgraded. So I settled on
moving the /etc/cloud directory to /etc/cloud.rpmsave, and then cherry
picking the db.properties, agent.properties, and db key files into the
new config directory. Then I looked at the tomcat6.conf and server.xml
links and recreated new ones in /etc/cloudstack/management based on
whether the old ones were ssl or non-ssl. The files themselves had
changed between versions, so I did this rather than copying anything.

Now the big question, has anyone tested upgrades on Ubuntu 12.04? Or
do we plan to?

On Wed, Mar 27, 2013 at 11:11 AM, Pradeep Soundararajan
<pr...@citrix.com> wrote:
> These are my observations I have captured during my testing:
>
> 1)      'service cloudstack-management start' is failing for the first time since it did not find tomcat6.conf and server.xml. This will get created (symb links) only if you execute "cloudstack-setup-management" for the first time after the upgrade since this will be treated as a fresh install because rpm names and locations have been changed from 4.1.  I have found the symb links are getting updated during the upgrade only if the upgrade path is present already. In our situation upgrade path is pretty new.
> 2)      I have observed db.properties of 4.1 is different from 4.0.  I have observed there is an issue with db.properties initially, that is the reason I have tried to redploy DB and launched 4.1 MS. But realized and got to know from QA that we should not redploy db after the upgrade.  Let me know how to handle the situation if db.properties are changed in 4.1.
>
> I was trying to keep a check in cloud.spec incase cloud-client is present in the system or not. Then I was trying to provide the symb link of the files which are needed for the upgrade like db.properties, tomcat6.conf etc from the old path /etc/cloud/management to the new path /etc/cloudstack/management.
>
> I have tried these below in cloud.spec but went in vain:
>
> %define _rpm_check_ver %(`rpm -q cloud-client-4.0.0 > /dev/null`)
> %if "%{?_rpm_check_ver}" != "0"
> Obsoletes: cloud-client < 4.1.0
> %endif
>
> I hope Marcus is looking at this now.  Let's wait for his feedback.
>
> Thanks,
> Pradeep S
>
>
> -----Original Message-----
> From: Sudha Ponnaganti [mailto:sudha.ponnaganti@citrix.com]
> Sent: Tuesday, March 26, 2013 2:45 AM
> To: dev@cloudstack.apache.org
> Subject: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1
>
> Hi,
>
> Requesting help to resolve the following issue, if you have done upgrade.
> https://issues.apache.org/jira/browse/CLOUDSTACK-1694
>
> Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.
>
> Thanks
> /Sudha

RE: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Posted by Pradeep Soundararajan <pr...@citrix.com>.
These are my observations I have captured during my testing:

1)	'service cloudstack-management start' is failing for the first time since it did not find tomcat6.conf and server.xml. This will get created (symb links) only if you execute "cloudstack-setup-management" for the first time after the upgrade since this will be treated as a fresh install because rpm names and locations have been changed from 4.1.  I have found the symb links are getting updated during the upgrade only if the upgrade path is present already. In our situation upgrade path is pretty new.
2)	I have observed db.properties of 4.1 is different from 4.0.  I have observed there is an issue with db.properties initially, that is the reason I have tried to redploy DB and launched 4.1 MS. But realized and got to know from QA that we should not redploy db after the upgrade.  Let me know how to handle the situation if db.properties are changed in 4.1.

I was trying to keep a check in cloud.spec incase cloud-client is present in the system or not. Then I was trying to provide the symb link of the files which are needed for the upgrade like db.properties, tomcat6.conf etc from the old path /etc/cloud/management to the new path /etc/cloudstack/management. 

I have tried these below in cloud.spec but went in vain:

%define _rpm_check_ver %(`rpm -q cloud-client-4.0.0 > /dev/null`)
%if "%{?_rpm_check_ver}" != "0" 
Obsoletes: cloud-client < 4.1.0
%endif	 

I hope Marcus is looking at this now.  Let's wait for his feedback.

Thanks,
Pradeep S


-----Original Message-----
From: Sudha Ponnaganti [mailto:sudha.ponnaganti@citrix.com] 
Sent: Tuesday, March 26, 2013 2:45 AM
To: dev@cloudstack.apache.org
Subject: [ACS41][QA] Has anyone upgraded from 4.0 to 4.1

Hi,

Requesting help to resolve the following issue, if you have done upgrade.
https://issues.apache.org/jira/browse/CLOUDSTACK-1694

Upgrade is failing - if there is anyone that can take a look at it during US time zone that would be great.

Thanks
/Sudha