Provisioning failed: No package available

NethServer Version: 7.5.1804 with trial subscription
Module: Upgrade to AD

I did another attempt to upgrade my NS6.9 to NS7 via rsync. Everything worked smooth so far, except the thing with users and groups. But o.k. this can be because of customazing of my system.

I fixed this manually. But provisioning failed anyway. Messages.log tells me
No package nethserver-dc available.
Error: Nothing to do

Something missing in repo??

In ns7 you could check the available nethserver-dc version with

yum clean all
yum info nethserver-dc
yum clean all
Loaded plugins: changelog, fastestmirror, nethserver_events
Cleaning repos: stephdl
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors

 yum info nethserver-dc
Loaded plugins: changelog, fastestmirror, nethserver_events
Determining fastest mirrors
stephdl                                                                                          | 2.9 kB  00:00:00
stephdl/7/primary_db                                                                             | 141 kB  00:00:00
Error: No matching Packages to list

I found, that all repos in subscription.repo are disabled.
and:
config show subscription
subscription=configuration
AlertsAutoUpdates=enabled
AlertsUrl=https://my.nethserver.com/api/machine/
ApiUrl=https://my.nethserver.com/api/
InventoryUrl=https://my.nethserver.com/api/machine/inventories/store/
NsRelease=7.5.1804
PricingUrl=https://my.nethserver.com/?action=newServer
Secret=
SystemId=

Secret and SystemId are empty. I think this happend during rsync -u.
And the subsciption itself has disappeared.

EDIT:
Also /etc/yum/vars/nsrelease is empty

1 Like

Great catch @flatspin! You got it!

The rsync ns6 upgrade procedure cannot work with a #subscription. You should complete the ns6 upgrade procedure and once the system is fully operational enable the subscription.

I did yum reinstall @nethserver-subscription an registered the server again.
Repos are workig again now.
Provisioning worked now.

3 Likes