Comments (25)
CCing @vinzenz.
from leapp-repository.
I am experiencing the same issue.
Not only with snactor discovery
, but also with snactor run actors/(does not matter)/actor.py
System info
- fedora silverblue 30 + toolbox with f30 image
- snactor version 0.8.1
- leapp-repository commit https://github.com/oamg/leapp-repository/commit/e355543ae334c1ee886692f019983d7245e9325d
from leapp-repository.
I've just tried snactor discover
after installing the latest snactor build from Fedora Copr (0.8.1-1.201908200828Z.8bbf9d3.master.el7) on my F30. It worked fine. Where did you get the 0.8.1 version from? Paste your traceback here please.
from leapp-repository.
By the way, the traceback shows that python 2.7 version of leapp has been installed. I have it installed for python 3.7.
@landgraf, @Honza0297, could you please try installing current version of snactor from the Fedora Copr and see if it's installed for python 3? It definitely shouldn't be installed for python 2 on Fedora. Thanks.
from leapp-repository.
@bocekm When i was installing leapp according to the tutorial (link), there was a problem with leapp-repository dependency, which is needed in version 0.8.1, but the only available version from Copr repository is 0.3.1, so I had to install it in some twisted way (which I do not remember, unfortunately) - this could be the main reason why it is not working for me.
from leapp-repository.
@Honza0297, unfortunately we are unable to build leapp-repository in the Fedora Copr at the moment. You can build the rpm locally with the following script: https://0bin.net/paste/J30FLCXiLit10Xgq#OjBkwlGdScLjKgMUxDZkKQXkbRVvS6jsQLSS9wbx4QU
Or ping me or anybody on #leapp IRC and we'll send you a link to the internal Copr with the latest leapp-repository packages.
We're working on a better solution.
from leapp-repository.
@bocekm Unfortunately, the script does not work either - rpmbuild fails on %build section.
I have also tried to install snactor again in new f30 container to check if it requires Python 2 or 3 by typing:
sudo dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/leapp/leapp-devel/repo/epel-7/group_leapp-leapp-devel-epel-7.repo sudo dnf install snactor
and Python 2 is required.
from leapp-repository.
@Honza0297, you're right, I'm also getting this on f30:
Installing:
snactor noarch 0.8.1-1.201909041507Z.d251200.master.el7 copr:copr.fedorainfracloud.org:group_leapp:leapp-devel 8.7 k
Installing dependencies:
python2-leapp noarch 0.8.1-1.201909041507Z.d251200.master.el7 copr:copr.fedorainfracloud.org:group_leapp:leapp-devel 176 k
It should be requiring python3-leapp
.
from leapp-repository.
Actually it should be requiring python2-leapp because that's snactor for CentOS/RHEL7. I was blindly copy pasting your command and didn't catch that the repo you used is not for F30. Use this instead and python3-leapp will be installed:
sudo dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/leapp/leapp-devel/repo/fedora-30/group_leapp-leapp-devel-fedora-30.repo
from leapp-repository.
@bocekm Great, thanks!
By the way, it would be useful to update the tutorial to reflect these differences. As a newcomer to leapp, I just did what the tutorial told me without knowing there is also f30 repo.
from leapp-repository.
@Honza0297, good point, thanks.
from leapp-repository.
@bocekm After I used the f30 repo and installed snactor from it, there is no change and snactor still throws the same error as before.
from leapp-repository.
@Honza0297, please paste the error here.
from leapp-repository.
$ snactor discover
Traceback (most recent call last):
File "/usr/bin/snactor", line 11, in <module>
load_entry_point('leapp==0.8.1', 'console_scripts', 'snactor')()
File "/usr/lib/python3.7/site-packages/leapp/snactor/__init__.py", line 73, in main
cli.command.execute(version=_('snactor version {}').format(VERSION))
File "/usr/lib/python3.7/site-packages/leapp/utils/clicmd.py", line 103, in execute
args.func(args)
File "/usr/lib/python3.7/site-packages/leapp/utils/clicmd.py", line 125, in called
self.target(args)
File "/usr/lib/python3.7/site-packages/leapp/utils/repository.py", line 20, in checker
return f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/leapp/snactor/context.py", line 32, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/leapp/snactor/commands/run.py", line 31, in cli
repository = find_and_scan_repositories(basedir, include_locals=True)
File "/usr/lib/python3.7/site-packages/leapp/repository/scan.py", line 57, in find_and_scan_repositories
_resolve_repository_links(manager=manager, include_locals=include_locals)
File "/usr/lib/python3.7/site-packages/leapp/repository/scan.py", line 39, in _resolve_repository_links
raise RepositoryConfigurationError('Missing repositories detected: {}'.format(', '.join(missing)))
leapp.exceptions.RepositoryConfigurationError: Missing repositories detected: efcf9016-f2d1-4609-9329-a298e6587b3c
from leapp-repository.
@bocekm Would be possible to make a direct conversation (on IRC for example) if you have time?
from leapp-repository.
@Honza0297, sure, mbocek nick on #leapp. Or stop by at 2D383 in TPB-C.
from leapp-repository.
The issue may be podman related - @Honza0297 runs a F30 pod.
There seems to be also an issue, maybe related, with socket.getfqdn()
as it takes around 10 seconds.
With 0.8.1-100.201909061315Z.723e780.master.el7 snactor installed:
$ snactor
^C
Traceback (most recent call last):
File "/usr/bin/snactor", line 11, in <module>
load_entry_point('leapp==0.8.1', 'console_scripts', 'snactor')()
File "/usr/lib/python3.7/site-packages/leapp/snactor/__init__.py", line 71, in main
os.environ['LEAPP_HOSTNAME'] = socket.getfqdn()
File "/usr/lib64/python3.7/socket.py", line 676, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
KeyboardInterrupt
$ hostnamectl set-hostname localhost.localdomain
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to create bus connection: Host is down
$ snactor repo find --path .
Registering .
$ snactor run check_nfs
Traceback (most recent call last):
File "/usr/bin/snactor", line 11, in <module>
load_entry_point('leapp==0.8.1', 'console_scripts', 'snactor')()
File "/usr/lib/python3.7/site-packages/leapp/snactor/__init__.py", line 73, in main
cli.command.execute(version=_('snactor version {}').format(VERSION))
File "/usr/lib/python3.7/site-packages/leapp/utils/clicmd.py", line 103, in execute
args.func(args)
File "/usr/lib/python3.7/site-packages/leapp/utils/clicmd.py", line 125, in called
self.target(args)
File "/usr/lib/python3.7/site-packages/leapp/utils/repository.py", line 20, in checker
return f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/leapp/snactor/context.py", line 32, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/leapp/snactor/commands/run.py", line 31, in cli
repository = find_and_scan_repositories(basedir, include_locals=True)
File "/usr/lib/python3.7/site-packages/leapp/repository/scan.py", line 57, in find_and_scan_repositories
_resolve_repository_links(manager=manager, include_locals=include_locals)
File "/usr/lib/python3.7/site-packages/leapp/repository/scan.py", line 39, in _resolve_repository_links
raise RepositoryConfigurationError('Missing repositories detected: {}'.format(', '.join(missing)))
leapp.exceptions.RepositoryConfigurationError: Missing repositories detected: efcf9016-f2d1-4609-9329-a298e6587b3c
from leapp-repository.
Actually I wonder where snactor repo scan was run from.
Also it would be a good idea to run snactor repo healthcheck
from leapp-repository.
snactor repo health-check
has no output here. And after run it, snactor discover
still fails.
Path where we run snactor commands is:
$ pwd
/home/jaberan/Documents/projects/rhel_upgrade_script/leapp-repository/repos/system_upgrade/el7toel8
from leapp-repository.
You need to run
$ snactor repo find --path /home/jaberan/Documents/projects/rhel_upgrade_script/leapp-repository/repos
The common repo is not registered which is in leapp-repository/repos/common
That should solve that problem with the discovery for you.
from leapp-repository.
Good news: error with missing repo is fixed! Thanks!
However, another problem occurred. When I run snactor run --debug (actor)
where (actor) is any actor, I get no output. It should write at least some logs like here in tutorial (bottom of the page), shouldn't it?
from leapp-repository.
Since this is highly probably specific only to podman, I'd say it's niche problem, and I would kindly ask you to use either our devel vagrant box or any RHEL VM.
I'll leave the issue open for somebody like @vinzenz or @fernflower to look at that if they find a time.
from leapp-repository.
@Honza0297 Do you mean, that you expect an output from the actor to see on stdout?
--print-output
Is it what are you looking for?
from leapp-repository.
@bocekm OK, that is probably the best solution.
@pirat89 Unfortunately not. I expect to see some debug info and/or status messages. And --print-output does not work either.
from leapp-repository.
@Honza0297 Ok, in that case there is really bug hidden inside I guess.
from leapp-repository.
Related Issues (20)
- CentOS 7,9 to Almalinux: missing named-user-options.conf HOT 7
- package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch conflicts with leapp-upgrade-el8toel9 provided by leapp-upgrade-el8toel9-0.17.0-3.el8.noarch when upgrade almalinux 8 to 9 HOT 13
- Why does Leapp upgrade fails with 'NameError: global name 'dnf' is not defined' ? HOT 1
- NameError: global name 'dnf' is not defined HOT 1
- pes-events.json license HOT 5
- Leapp does not detect qemu64 CPU incompatibility with CentOS-9 HOT 4
- efibootmgr exit code 5 during leapp efi_finalization_fix HOT 2
- Unexpected format of target version: 7 HOT 3
- Enhancement: Support for luks encrypted root and non root filesystems HOT 6
- Leapp fails to detect all the ceph encrypted volumes HOT 1
- Current x86-64 microarchitecture is unsupported even though all flags are present HOT 14
- el8toel9: PostgreSQL upgrade warning even when using PostgreSQL 13 on EL8 HOT 1
- how to excluding a package during the upgrade process. HOT 1
- Package "X" from local repository "Y" has incorrect checksum HOT 5
- sysstat doesn't upgrade generated 7 data files correctly to 8 HOT 2
- Dependency Dashboard
- leapp preupgrade errors on OracleLinux 8 HOT 1
- leapp upgrade does not respect --target version HOT 3
- feature request: support custom content inside upgrade initramfs HOT 6
- "Detected custom leapp actors or files" false positive HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leapp-repository.