First of all, Happy Thanksgiving to all who celebrate. Giving thanks for powerful open source virtualization! I''m running XCP 1.1 (not in production). My host license has been expired for some time and I didn''t have any functionality loss until I rebooted the host. When it came back up, the host was disabled and ''xe host-enable uuid=xxx'' gave me the following error: [root@xenserver-bnfnijur log]# xe host-enable uuid=c9a1e29e-fdd7-4b61-8152-a22a9acd30bc Your license has expired. Please contact your support representative. I tried the expiry.sh trick, but it didn''t work. I''m curious though. Why would my host be disabled if I''m using XCP which is free? Is it because I''m using XenCenter for management? Thanks in advance for any insight!
Errol Neal wrote:> First of all, Happy Thanksgiving to all who celebrate. Giving thanks for powerful open source virtualization! ><SNIP>> I tried the expiry.sh trick, but it didn''t work. >Just to cover my basis, I also tried it manually. I stopped xapi and manually modified state.db and changed two instances of expiry. When i started back up xapi and ran xe host-enable I still received the error and checking the state.db, the date had reverted. This host is one of two in a pool.
Errol Neal wrote:> Errol Neal wrote: > > First of all, Happy Thanksgiving to all who celebrate. Giving thanks for powerful open source virtualization! > > > <SNIP> > > I tried the expiry.sh trick, but it didn''t work. > > > > Just to cover my basis, I also tried it manually. I stopped xapi and manually modified state.db and changed two instances of expiry. When i started back up xapi and ran xe host-enable I still received the error and checking the state.db, the date had reverted. > > This host is one of two in a pool. >Any takers on this? i''ve googled and searched old threads and they always seem to end with someone having to reinstall which is not possible for me at the moment. I don''t even know how I got into this state. I always thought XCP was free so I ignored the license warnings from XenCenter not thinking that my hosts would actually be disabled. There isn''t any point in reinstalling if I''m just going to encounter the same problem again :/ Was it because i was using XenCenter? If XenCenter wasn''t in the picture, would my host have been disabled? Thanks again..
Scott Damron
2011-Nov-26 02:39 UTC
Re: [XCP] Host Disabled, License expired, Can''t renable
If you need to solve it asap, ho yo the Citrix site and request a license. Then install it through xencentet. On Nov 25, 2011 8:36 PM, "Errol Neal" <eneal@businessgrade.com> wrote:> Errol Neal wrote: > > Errol Neal wrote: > > > First of all, Happy Thanksgiving to all who celebrate. > Giving thanks for powerful open source virtualization! > > > > > <SNIP> > > > I tried the expiry.sh trick, but it didn''t work. > > > > > > > Just to cover my basis, I also tried it manually. I stopped xapi and > manually modified state.db and changed two instances of expiry. When i > started back up xapi and ran xe host-enable I still received the error and > checking the state.db, the date had reverted. > > > > This host is one of two in a pool. > > > > Any takers on this? i''ve googled and searched old threads and they always > seem to end with someone having to reinstall which is not possible for me > at the moment. > > I don''t even know how I got into this state. I always thought XCP was free > so I ignored the license warnings from XenCenter not thinking that my hosts > would actually be disabled. > There isn''t any point in reinstalling if I''m just going to encounter the > same problem again :/ Was it because i was using XenCenter? If XenCenter > wasn''t in the picture, would my host have been disabled? > > Thanks again.. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Outback Dingo
2011-Nov-26 02:54 UTC
Re: [XCP] Host Disabled, License expired, Can''t renable
On Fri, Nov 25, 2011 at 9:29 PM, Errol Neal <eneal@businessgrade.com> wrote:> Errol Neal wrote: >> Errol Neal wrote: >> > First of all, Happy Thanksgiving to all who celebrate. Giving thanks for powerful open source virtualization! >> > >> <SNIP> >> > I tried the expiry.sh trick, but it didn''t work. >> > >> >> Just to cover my basis, I also tried it manually. I stopped xapi and manually modified state.db and changed two instances of expiry. When i started back up xapi and ran xe host-enable I still received the error and checking the state.db, the date had reverted. >> >> This host is one of two in a pool. >> > > Any takers on this? i''ve googled and searched old threads and they always seem to end with someone having to reinstall which is not possible for me at the moment. > > I don''t even know how I got into this state. I always thought XCP was free so I ignored the license warnings from XenCenter not thinking that my hosts would actually be disabled. > There isn''t any point in reinstalling if I''m just going to encounter the same problem again :/ Was it because i was using XenCenter? If XenCenter wasn''t in the picture, would my host have been disabled?Well back in the early days this was an issue 0.5 and earlier, it was supposed to be fixed in 1.1 though.... quite odd, get a license file from the citrix site to re-enable in the meantime> > Thanks again.. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >
Hi Errol Try this ---------------------------------------------------------------------------------------- #!/bin/bash #Script to fix XCP 30 License expire issue #Script increases the month value by 1 #By: Ronny L. Bull & Alex Stuart #Version: 1.0 #Date: 8-9-2011 FUTURE=`date --date="next Month" ''+%Y%m%d''` #stop xapi service /etc/init.d/xapi stop #Replace the expiry entry sed -i "s/\(expiry.\{3\}\)[0-9]\{8\}/\1$FUTURE/g" /var/xapi/state.db #start xapi service /etc/init.d/xapi start ---------------------------------------------------------------------------------------- If you have a pool, you have to replace the expiry date in all of the members of the pool.. so you have to add a "g" at the end of sed comand to replace all the occurrences. sed -i "s/<regular expresion>/<regular expresion>/g" file Hope it helps Kyle> On Fri, Nov 25, 2011 at 9:29 PM, Errol Neal <eneal@businessgrade.com> > wrote: >> Errol Neal wrote: >>> Errol Neal wrote: >>> > First of all, Happy Thanksgiving to all who >>> celebrate. Giving thanks for powerful open source virtualization! >>> > >>> <SNIP> >>> > I tried the expiry.sh trick, but it didn''t work. >>> > >>> >>> Just to cover my basis, I also tried it manually. I stopped xapi and >>> manually modified state.db and changed two instances of expiry. When i >>> started back up xapi and ran xe host-enable I still received the error >>> and checking the state.db, the date had reverted. >>> >>> This host is one of two in a pool. >>> >> >> Any takers on this? i''ve googled and searched old threads and they >> always seem to end with someone having to reinstall which is not >> possible for me at the moment. >> >> I don''t even know how I got into this state. I always thought XCP was >> free so I ignored the license warnings from XenCenter not thinking that >> my hosts would actually be disabled. >> There isn''t any point in reinstalling if I''m just going to encounter the >> same problem again :/ Was it because i was using XenCenter? If XenCenter >> wasn''t in the picture, would my host have been disabled? > > Well back in the early days this was an issue 0.5 and earlier, it was > supposed to be fixed in 1.1 though.... quite odd, get a license file > from the citrix site to re-enable in the meantime > >> >> Thanks again.. >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-------------------------------------------------------------------------------------------- Busca, compara... pero busca en Qué! Descúbrelo en http://buscar.que.es/ -------------------------------------------------------------------------------------------- Correo enviado desde http://www.ozu.es
Kyle wrote:> Hi Errol<SNIP>> If you have a pool, you have to replace the expiry date in all of the > members of the pool.. so you have to add a "g" at the end of sed comand to > replace all the occurrences. > > sed -i "s/<regular expresion>/<regular expresion>/g" file > > Hope it helps > > Kyle > > > On Fri, Nov 25, 2011 at 9:29 PM, Errol Neal <eneal@businessgrade.com> > > wrote: > >> Errol Neal wrote: > >>> Errol Neal wrote: > >>> > First of all, Happy Thanksgiving to all who > >>> celebrate. Giving thanks for powerful open source virtualization! > >>> > > >>> <SNIP> > >>> > I tried the expiry.sh trick, but it didn''t work. > >>> > > >>> > >>> Just to cover my basis, I also tried it manually. I stopped xapi and > >>> manually modified state.db and changed two instances of expiry. When i > >>> started back up xapi and ran xe host-enable I still received the error > >>> and checking the state.db, the date had reverted. > >>> > >>> This host is one of two in a pool. > >>> > >> > >> Any takers on this? i''ve googled and searched old threads and they > >> always seem to end with someone having to reinstall which is not > >> possible for me at the moment. > >> > >> I don''t even know how I got into this state. I always thought XCP was > >> free so I ignored the license warnings from XenCenter not thinking that > >> my hosts would actually be disabled. > >> There isn''t any point in reinstalling if I''m just going to encounter the > >> same problem again :/ Was it because i was using XenCenter? If XenCenter > >> wasn''t in the picture, would my host have been disabled? > > > > Well back in the early days this was an issue 0.5 and earlier, it was > > supposed to be fixed in 1.1 though.... quite odd, get a license file > > from the citrix site to re-enable in the meantime > > > >>Hi. Thanks for the insight. I''ve made the changes several times. When I start back up xapi, the DB reverts the expiry to its previous values..
<admin@xenhive.com>
2011-Nov-26 19:49 UTC
Re: [XCP] Host Disabled, License expired, Can''t renable
The key is the ''g'' in the sed line if you have a pool. If you have previously tried it without the ''g'' and it failed, try it with the ''g''. It does work in pools when the ''g'' is included. Personally, I''d like to see all of the expiry code completely removed and full XCP support added to XenCenter. The current issues with expiration and version quirks creates a lot of confusion when a new user dives into XCP. At a first glance, it always appears that XCP is going to only be usable for 30 days. The expiration warnings are scaring some people away from XCP. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Errol Neal Sent: Saturday, November 26, 2011 10:02 AM To: Kyle Cc: Outback Dingo; xen-users@lists.xensource.com Subject: Re: [Xen-users] [XCP] Host Disabled, License expired, Can''t renable Kyle wrote:> Hi Errol<SNIP>> If you have a pool, you have to replace the expiry date in all of the > members of the pool.. so you have to add a "g" at the end of sed comand to > replace all the occurrences. > > sed -i "s/<regular expresion>/<regular expresion>/g" file > > Hope it helps > > Kyle > > > On Fri, Nov 25, 2011 at 9:29 PM, Errol Neal <eneal@businessgrade.com> > > wrote: > >> Errol Neal wrote: > >>> Errol Neal wrote: > >>> > First of all, Happy Thanksgiving to all who > >>> celebrate. Giving thanks for powerful open source virtualization! > >>> > > >>> <SNIP> > >>> > I tried the expiry.sh trick, but it didn''t work. > >>> > > >>> > >>> Just to cover my basis, I also tried it manually. I stopped xapi and > >>> manually modified state.db and changed two instances of expiry. When i > >>> started back up xapi and ran xe host-enable I still received the error > >>> and checking the state.db, the date had reverted. > >>> > >>> This host is one of two in a pool. > >>> > >> > >> Any takers on this? i''ve googled and searched old threads and they > >> always seem to end with someone having to reinstall which is not > >> possible for me at the moment. > >> > >> I don''t even know how I got into this state. I always thought XCP was > >> free so I ignored the license warnings from XenCenter not thinking that > >> my hosts would actually be disabled. > >> There isn''t any point in reinstalling if I''m just going to encounterthe> >> same problem again :/ Was it because i was using XenCenter? IfXenCenter> >> wasn''t in the picture, would my host have been disabled? > > > > Well back in the early days this was an issue 0.5 and earlier, it was > > supposed to be fixed in 1.1 though.... quite odd, get a license file > > from the citrix site to re-enable in the meantime > > > >>Hi. Thanks for the insight. I''ve made the changes several times. When I start back up xapi, the DB reverts the expiry to its previous values.. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Grant McWilliams
2011-Nov-26 22:01 UTC
Re: [XCP] Host Disabled, License expired, Can''t renable
> Any takers on this? i''ve googled and searched old threads and they always > seem to end with someone having to reinstall which is not possible for me > at the moment. > > I don''t even know how I got into this state. I always thought XCP was free > so I ignored the license warnings from XenCenter not thinking that my hosts > would actually be disabled. > There isn''t any point in reinstalling if I''m just going to encounter the > same problem again :/ Was it because i was using XenCenter? If XenCenter > wasn''t in the picture, would my host have been disabled? > > Thanks again.. > >The reason nobody was responding is we''ve all had this problem and we all fixed it the same way (or we keep pushing the expire date out) which has already been mentioned. Replacing ALL of the instances of expiry with a later date works. You need to get all instances in all hosts though or it will just show up again. Grant McWilliams _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Errol Stop xapi in all of the members of the pool (/etc/init.d/xapi stop) Execute the script Start xapi (/etc/init.d/xapi start) Cheers> > Kyle wrote: >> Hi Errol > <SNIP> >> If you have a pool, you have to replace the expiry date in all of the >> members of the pool.. so you have to add a "g" at the end of sed comand >> to >> replace all the occurrences. >> >> sed -i "s/<regular expresion>/<regular expresion>/g" file >> >> Hope it helps >> >> Kyle >> >> > On Fri, Nov 25, 2011 at 9:29 PM, Errol Neal <eneal@businessgrade.com> >> > wrote: >> >> Errol Neal wrote: >> >>> Errol Neal wrote: >> >>> > First of all, Happy Thanksgiving to all who >> >>> celebrate. Giving thanks for powerful open source virtualization! >> >>> > >> >>> <SNIP> >> >>> > I tried the expiry.sh trick, but it didn''t work. >> >>> > >> >>> >> >>> Just to cover my basis, I also tried it manually. I stopped xapi and >> >>> manually modified state.db and changed two instances of expiry. When >> i >> >>> started back up xapi and ran xe host-enable I still received the >> error >> >>> and checking the state.db, the date had reverted. >> >>> >> >>> This host is one of two in a pool. >> >>> >> >> >> >> Any takers on this? i''ve googled and searched old threads and they >> >> always seem to end with someone having to reinstall which is not >> >> possible for me at the moment. >> >> >> >> I don''t even know how I got into this state. I always thought XCP was >> >> free so I ignored the license warnings from XenCenter not thinking >> that >> >> my hosts would actually be disabled. >> >> There isn''t any point in reinstalling if I''m just going to encounter >> the >> >> same problem again :/ Was it because i was using XenCenter? If >> XenCenter >> >> wasn''t in the picture, would my host have been disabled? >> > >> > Well back in the early days this was an issue 0.5 and earlier, it was >> > supposed to be fixed in 1.1 though.... quite odd, get a license file >> > from the citrix site to re-enable in the meantime >> > >> >> > > Hi. Thanks for the insight. I''ve made the changes several times. When I > start back up xapi, the DB reverts the expiry to its previous values.. >-------------------------------------------------------------------------------------------- Busca, compara... pero busca en Qué! Descúbrelo en http://buscar.que.es/ -------------------------------------------------------------------------------------------- Correo enviado desde http://www.ozu.es
Grant McWilliams wrote:> > > Any takers on this? i''ve googled and searched old threads and they always seem to end with someone having to reinstall which is not possible for me at the moment. > > I don''t even know how I got into this state. I always thought XCP was free so I ignored the license warnings from XenCenter not thinking that my hosts would actually be disabled. > There isn''t any point in reinstalling if I''m just going to encounter the same problem again :/ Was it because i was using XenCenter? If XenCenter wasn''t in the picture, would my host have been disabled? > > Thanks again.. > > >The reason nobody was responding is we''ve all had this problem and we all fixed it the >same way (or we keep pushing the expire date out) which has already been mentioned. >Replacing ALL of the instances of expiry with a later date works. You need to get all >instances in all hosts though or it will just show up again.Hey, thanks again for the response. One of the things that is always difficult to convey to other forum users is when you''ve diligently searched out a matter and attempted the fixes that are common sense based and otherwise well documented. In my case, I was doing this, but I wasn''t getting the result expected. I believe it had something to with the fact that I have ha enabled. I disabled ha, shutdown xapi on both hosts, modified the dB on both hosts and restarted xapi. That did it! Thanks for your patience and responses.
Grant McWilliams
2011-Nov-27 04:37 UTC
Re: [XCP] Host Disabled, License expired, Can''t renable
> > > > >The reason nobody was responding is we''ve all had this problem and we all > fixed it the >same way (or we keep pushing the expire date out) which has > already been mentioned. >Replacing ALL of the instances of expiry with a > later date works. You need to get all >instances in all hosts though or it > will just show up again. > > Hey, thanks again for the response. > One of the things that is always difficult to convey to other forum users > is when you''ve diligently searched out a matter and attempted the fixes > that are common sense based and otherwise well documented. In my case, I > was doing this, but I wasn''t getting the result expected. I believe it had > something to with the fact that I have ha enabled. > I disabled ha, shutdown xapi on both hosts, modified the dB on both hosts > and restarted xapi. That did it! > Thanks for your patience and responses. >This question comes up about once every 30 days (when the licenses expire) and it''s answered every time. After a while you start hoping someone else will answer it this time. I understand that if you don''t search for the right thing you won''t find the answer. I''ve had to do this license hack 3 times recently and every time I googled "xcp license expired" and the first link is usually the one I want. I can never remember the location to the xapi file. Grant McWilliams _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
George Shuklin
2011-Nov-28 22:03 UTC
Re: [XCP] Host Disabled, License expired, Can''t renable
Actually, AFAIK you don''t need to change state.db on slaves, they are replaces by copy from master. But you need to shutdown every xapi in the pool. On 27.11.2011 03:10, Errol Neal wrote:> Grant McWilliams wrote: >> >>> Any takers on this? i''ve googled and searched old threads and they always seem to end with someone having to reinstall which is not possible for me at the moment. >> I don''t even know how I got into this state. I always thought XCP was free so I ignored the license warnings from XenCenter not thinking that my hosts would actually be disabled. >> There isn''t any point in reinstalling if I''m just going to encounter the same problem again :/ Was it because i was using XenCenter? If XenCenter wasn''t in the picture, would my host have been disabled? >> >> Thanks again.. >> >> >> The reason nobody was responding is we''ve all had this problem and we all fixed it the>same way (or we keep pushing the expire date out) which has already been mentioned.>Replacing ALL of the instances of expiry with a later date works. You need to get all>instances in all hosts though or it will just show up again. > Hey, thanks again for the response. > One of the things that is always difficult to convey to other forum users is when you''ve diligently searched out a matter and attempted the fixes that are common sense based and otherwise well documented. In my case, I was doing this, but I wasn''t getting the result expected. I believe it had something to with the fact that I have ha enabled. > I disabled ha, shutdown xapi on both hosts, modified the dB on both hosts and restarted xapi. That did it! > Thanks for your patience and responses. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users