Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. OS Upgrade options on customized Netdisco install (Brian Marshall)
   2. Re: OS Upgrade options on customized Netdisco install
      (Christian Ramseyer)
   3. Re: OS Upgrade options on customized Netdisco install
      (Oliver Gorwits)
--- Begin Message ---
Hello,

I know that there isn't a supported way to upgrade Debian through new OS versions that package new perl releases other than doing a parallel install or reinstall, but I have an older fork of netdisco that has been massively customized (and we stalled out on trying to merge patches back into the mainline many years ago).

Is there any theoretical way to allow such an install to survive upgrades? I'm trying to run a PoC on some integrations that require me to have upgraded libraries past what I have available to me and am looking at having to undertake a massive multi-server rebuild to even get started...any hints or help getting Debian upgraded and fixing the Netdisco install to work with the new perl would be appreciated!

I'm hoping in the long-term to be able to re-merge the changes back into the Netdisco main branch, but I don't have the resources for that right now.

Thanks!

   -Brian Marshall




--- End Message ---
--- Begin Message ---


On 21.01.23 17:50, Brian Marshall via netdisco-users wrote:
Hello,

I know that there isn't a supported way to upgrade Debian through new OS versions that package new perl releases other than doing a parallel install or reinstall, but I have an older fork of netdisco that has been massively customized (and we stalled out on trying to merge patches back into the mainline many years ago).

Is there any theoretical way to allow such an install to survive upgrades? I'm trying to run a PoC on some integrations that require me to have upgraded libraries past what I have available to me and am looking at having to undertake a massive multi-server rebuild to even get started...any hints or help getting Debian upgraded and fixing the Netdisco install to work with the new perl would be appreciated!

I'm hoping in the long-term to be able to re-merge the changes back into the Netdisco main branch, but I don't have the resources for that right now.

I'd try like that:

1. have a full working backup of the old Debian

2. do one or more major version upgrades to the distro <https://wiki.debian.org/DebianUpgrade> until you're at the latest release.

3. rename your old ~netdisco/perl5 to  ~netdisco/perl5.prev

4. Install a new version of Netdisco as shown here: https://metacpan.org/pod/App::Netdisco#Installation. Stop after the step "curl -L https://cpanmin.us/ | perl - --notest --local-lib ~/perl5 App::Netdisco" step, we just want to do the base install so that all the libraries get downloaded and are linked to your new Perl/Linux environment.

5. From the perl5.prev, take the lib/perl5/App/Netdisco folder and lib/perl5/App/Netdisco.pm file, and replace the versions in your new Netdisco installation.

It might just work. Otherwise you'll have to go back to step one, there's AFAICT no other way to cleanly undo a botched apt full-upgrade. Having a separate VM or new machine will make this a lot less stressful if it shouldn't work out.

Cheers
Christian



--- End Message ---
--- Begin Message ---
Just to add to Christian's good answer, step five will copy back into place
the Perl files, but the static content (web templates, etc) might not be in
that place.

Here is the old script which used to update the demo website (before we
moved to using containers) and you can see it copies the static content
from `lib/auto/share/dist/App-Netdisco` (which is likely not the same on
your system but you might dig around and find it).

https://github.com/netdisco/netdisco2-demo/blob/master/scripts/update.sh

hope this helps, and good luck,

Oliver.

On Mon, 23 Jan 2023 at 15:29, Christian Ramseyer <ramse...@netnea.com>
wrote:

>
>
> On 21.01.23 17:50, Brian Marshall via netdisco-users wrote:
> > Hello,
> >
> > I know that there isn't a supported way to upgrade Debian through new OS
> > versions that package new perl releases other than doing a parallel
> > install or reinstall, but I have an older fork of netdisco that has been
> > massively customized (and we stalled out on trying to merge patches back
> > into the mainline many years ago).
> >
> > Is there any theoretical way to allow such an install to survive
> > upgrades? I'm trying to run a PoC on some integrations that require me
> > to have upgraded libraries past what I have available to me and am
> > looking at having to undertake a massive multi-server rebuild to even
> > get started...any hints or help getting Debian upgraded and fixing the
> > Netdisco install to work with the new perl would be appreciated!
> >
> > I'm hoping in the long-term to be able to re-merge the changes back into
> > the Netdisco main branch, but I don't have the resources for that right
> > now.
>
> I'd try like that:
>
> 1. have a full working backup of the old Debian
>
> 2. do one or more major version upgrades to the distro
> <https://wiki.debian.org/DebianUpgrade> until you're at the latest
> release.
>
> 3. rename your old ~netdisco/perl5 to  ~netdisco/perl5.prev
>
> 4. Install a new version of Netdisco as shown here:
> https://metacpan.org/pod/App::Netdisco#Installation. Stop after the step
> "curl -L https://cpanmin.us/ | perl - --notest --local-lib ~/perl5
> App::Netdisco" step, we just want to do the base install so that all the
> libraries get downloaded and are linked to your new Perl/Linux environment.
>
> 5. From the perl5.prev, take the lib/perl5/App/Netdisco folder and
> lib/perl5/App/Netdisco.pm file, and replace the versions in your new
> Netdisco installation.
>
> It might just work. Otherwise you'll have to go back to step one,
> there's AFAICT no other way to cleanly undo a botched apt full-upgrade.
> Having a separate VM or new machine will make this a lot less stressful
> if it shouldn't work out.
>
> Cheers
> Christian
>
>
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>
>

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to