Koozali.org: home of the SME Server

Upgrade 7.6 to 8.0 Query on CentOS repo's

Offline thowden

  • 12
  • +0/-0
Upgrade 7.6 to 8.0 Query on CentOS repo's
« on: July 28, 2012, 06:07:53 AM »
Hi

Have been reading and working to the upgrade instructions http://wiki.contribs.org/SME_Server_8 to take a SME 7.51 server up to version 8.0, or at least that is what I am hoping.

Following the instructions, I've seen the server upgrade to 7.6 and not 8.0

Now I am reviewing and from what I can work out the step titled 'Pointing repositories to SME 8' works to replace the YUM repo settings from version 7 to 8 for the SME repo's, but it is not updating the CentOS repo's which reference CentOS 4.9. From what I can see the code in this step only addresses the SME repo's and I would not expect any change to the CentOS with the commands provided, but how does the CentOS get an upgrade?

My question: Are we meant to update the CentOS repo's manually or not, or is a step missing, or is there something I am missing in the information? 

TIA

cheers
Tony



Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Upgrade 7.6 to 8.0 Query on CentOS repo's
« Reply #1 on: July 28, 2012, 07:34:06 AM »
thowden

Did you actually follow the instructions or are you just querying whether they are correct ?
AFAIK they are correct
ie
If the following does not work please report what went wrong so it can be fixed (if there is a problem)

db yum_repositories print | grep '^sme' | cut -d= -f1 | while read repo
do
    db yum_repositories setprop $repo MirrorList \
    http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/$repo-8
done

/etc/e-smith/events/actions/generic_template_expand yum-modify

    yum --enablerepo '*' clean all

    yum --disablerepo '*' \
        $(echo --enablerepo\ sme{os,updates,extras,addons}) \
        upgrade

    rm -f /var/lib/rpm/__db.00*
    (Note zeros not O's) 
   
    rpm --rebuilddb

    mv /home/e-smith/db/yum_repositories /home/e-smith/db/yum_repositories.pre8
    /etc/e-smith/events/actions/initialize-default-databases

    signal-event post-upgrade
    signal-event reboot
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline thowden

  • 12
  • +0/-0
Re: Upgrade 7.6 to 8.0 Query on CentOS repo's
« Reply #2 on: July 28, 2012, 09:41:45 AM »
<rant>stupid recaptcha....  lost the lot... start again</rant>

Having breathed deeply for a minute or two, I'll try again.

Hi Mary

Thanks for the reply. Yes I have been through all the instructions on a 7.51 server today. The end result is that I now have a shiny 7.6 server and not the souped up 8.0 server I was expecting.

My question is because I am trying to review and work out if the reason for not getting an 8.0 upgrade is my misunderstanding or an issue or perhaps that one of the steps did not work as expected.  To me it is not yet a bug report as I cannot provide anything other than the following.

Given your copy of the steps from that wiki page, I've entered some comments where I think my issue sits.

Starting from here:

db yum_repositories print | grep '^sme' | cut -d= -f1 | while read repo
do
    db yum_repositories setprop $repo MirrorList \
    http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/$repo-8
done

/etc/e-smith/events/actions/generic_template_expand yum-modify

** TH: I would expect at the end of this step that the repo's are set for 8.0 (both CentOS and SME)
#db yum_repositories print   
shows that the -7 repo's for SME are all now -8 but
the CentOS repo's are all set for http://vault.centos.org/4.9/  (which is correct for 7.6 I think, but not for 8.0)
I have compared to my 8.0 server which shows http://mirrorlist.centos.org
**
    yum --enablerepo '*' clean all

    yum --disablerepo '*' \
        $(echo --enablerepo\ sme{os,updates,extras,addons}) \
        upgrade
** this step above also appears to only call on the SME repo's and not the CentOS ones, so I am not clear what part the CentOS repo's play in getting me to 8.0 or not as is the case at the moment.

    rm -f /var/lib/rpm/__db.00*
    (Note zeros not O's)
   
    rpm --rebuilddb

    mv /home/e-smith/db/yum_repositories /home/e-smith/db/yum_repositories.pre8
    /etc/e-smith/events/actions/initialize-default-databases

    signal-event post-upgrade
    signal-event reboot

** Or am I simply missing something painfully obvious?

Thanks

Tony


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Upgrade 7.6 to 8.0 Query on CentOS repo's
« Reply #3 on: July 28, 2012, 11:23:19 AM »
thowden

Quote
** Or am I simply missing something painfully obvious?

You did not answer my question.
Did you actually follow the instructions or are you just querying whether they are correct ?

I think you need to follow them (ie do them) all the way to the end.


This step should finally setup standard repos for sme8 after having used the appropriate sme repos to  perform the yum upgrade from v7.x to v8.x

    mv /home/e-smith/db/yum_repositories /home/e-smith/db/yum_repositories.pre8
    /etc/e-smith/events/actions/initialize-default-databases

    signal-event post-upgrade
    signal-event reboot
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline thowden

  • 12
  • +0/-0
Re: Upgrade 7.6 to 8.0 Query on CentOS repo's
« Reply #4 on: July 28, 2012, 03:22:18 PM »
Hi Mary

Sorry, I thought I was being quite concise. Yes, I have followed, and used all the commands from start to end, in the sequence that they were named. I started with a 7.51 server, and followed the instructions, entering all the commands into the server, exactly as they are typed (I copied/pasted), all the way to the server reboot. The result is a 7.6 server and not an 8.0 server.

No, I am not querying if they are correct (I assume that they are). I am querying if there is something I am misunderstanding. If this is meant to upgrade 7.x to 8.0 then it has not worked for me, and I am trying to work out why.

The last section you highlighted should result in specific files existing which I think is evidenced by the following:

Code: [Select]
#ls -la /home/e-smith/db/
-rw-r-----  1 root  admin  2848 Jul 28 13:03 yum_repositories
-rw-r-----  1 root  admin  3609 Jul 28 11:38 yum_repositories.pre8

I have just run:

#diff yum_repositories yum_repositories.pre8

and the differences are only SME repo's as described in the previous post. The CentOS repo's are not mentioned, which suggests that the CentOS repo's have been skipped. I am not clear if that is intentional or not as the instructions do not clarify.

In fact:
#grep vault yum_repositories

shows that the updated file is still referencing http://vault.centos.org/4.9/

so IF the final process is meant to be:

  • copy old repo info to a pre8 file
  • update the repo file with post8 info
  • restart
  • download the CentOS updates from remote during the restart (no user interaction)
  • complete the upgrade

then NO, it did not work with my 7.51 server.

I hope that I have been clear enough in this post and have provided information that is useful.

Can you assist by confirming that my supposition(s) are correct or incorrect? 
Am I looking in the right place(s) for the potential issue?
Are the instructions actually meant to work with 7.51 to upgrade to 8.0?

I'd like to be sure that I am referencing the correct material before reporting that there is a (potential) bug.

Thanks
Tony

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Upgrade 7.6 to 8.0 Query on CentOS repo's
« Reply #5 on: July 28, 2012, 04:43:56 PM »
thowden

Well if you believe you followed the instructions correctly and doing so has not upgraded the server to v8.0, then you should post a bug report.

FYI here is a list of the repos from a sme8.0 server installed using the CD, so you can compare with yours.
Note I have added a couple of the sme7xxx repos to allow contribs to be installed.
(watch out for incorrect line wrapping in the forum post)

db yum_repositories show

addons=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    Name=CentOS - addons
    Visible=no
    status=disabled
base=repository
    EnableGroups=no
    Exclude=initscripts,libgsf
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    Name=CentOS - os
    Visible=yes
    status=enabled
centosplus=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    Name=CentOS - centosplus
    Visible=no
    status=disabled
contrib=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    Name=CentOS - contrib
    Visible=no
    status=disabled
extras=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    Name=CentOS - extras
    Visible=no
    status=disabled
sme7addons=repository
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeaddons-7
    Name=SME 7 - addons
    Visible=no
    status=disabled
sme7contribs=repository
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME 7 - contribs
    Visible=no
    status=disabled
smeaddons=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeaddons-8
    Name=SME Server - addons
    Visible=yes
    status=enabled
smecontribs=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-8
    Name=SME Server - contribs
    Visible=no
    status=disabled
smedev=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smedev-8
    Name=SME Server - dev
    Visible=no
    status=disabled
smeextras=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeextras-8
    Name=SME Server - extras
    Visible=yes
    status=enabled
smeos=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeos-8
    Name=SME Server - os
    Visible=yes
    status=enabled
smetest=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smetest-8
    Name=SME Server - test
    Visible=no
    status=disabled
smeupdates=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeupdates-8
    Name=SME Server - updates
    Visible=yes
    status=enabled
smeupdates-testing=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeupdates-testing-8
    Name=SME Server - updates testing
    Visible=yes
    status=enabled
updates=repository
    EnableGroups=no
    Exclude=initscripts,libgsf
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    Name=CentOS - updates
    Visible=yes
    status=enabled
« Last Edit: July 28, 2012, 04:46:24 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Upgrade 7.6 to 8.0 Query on CentOS repo's
« Reply #6 on: July 29, 2012, 06:22:31 AM »
A bug has been opened in Bugzilla:
http://bugs.contribs.org/show_bug.cgi?id=7056
Please follow there.
Thanks.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.