Provisioning failed: No package available

activedirectory
v7

(Ralf Jeckel) #1

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??


(Davide Principi) #2

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

yum clean all
yum info nethserver-dc

(Ralf Jeckel) #3
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

(Ralf Jeckel) #4

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


(Davide Principi) #5

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.


(Ralf Jeckel) #6

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