Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Only migrate command available after upgrade from 1.1 to 1.2 #1049

Closed
5 tasks done
olenchenko opened this issue Sep 27, 2019 · 6 comments
Closed
5 tasks done

Only migrate command available after upgrade from 1.1 to 1.2 #1049

olenchenko opened this issue Sep 27, 2019 · 6 comments

Comments

@olenchenko
Copy link

Make sure to follow and check these boxes before submitting an issue! Thank you.

  • Supply iocage --version

iocage -v

Version 1.2

  • Supply the commands used, along with any steps to recreate it.

iocage list

  • Provide the output from the command you issued.

iocage list

Usage: iocage [OPTIONS] COMMAND [ARGS]...
Try "iocage --help" for help.

Error: No such command "list".

  • Supply what you expected the result or output to be
    Expected list of running jails

  • Checked that the problem has not already been fixed on master if using
    a stable release.

OS: FreeBSD 12.0-RELEASE-p10 GENERIC amd64

iocage --help

Usage: iocage [OPTIONS] COMMAND [ARGS]...

A jail manager.

Options:
-v, --version Display iocage's version and exit.
-f, --force Allow iocage to rename datasets.
-D, --debug Log debug output to the console.
--help Show this message and exit.

Commands:
migrate Migrate all iocage_legacy develop basejails to new clonejails.
Only migrate command is available.

Iocage is installed from ports, ports were updated with portmaster.

@fuchst
Copy link

fuchst commented Sep 27, 2019

I had the same issue and it seems a dependency was not fulfilled.
All commands except "migrate" import iocage_lib.iocage. This in turn imports ioc_plugin.py which itself imports git. And that's where my problem came from since git was not installed.

Solution:
As a fix I installed the ports py-gitpython and git-lite and all the commands are recognized again.

@neelchauhan
Copy link

I have this issue also. @fuchst's solution works.

I sent a patch for the iocage port: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240927

@vendion
Copy link

vendion commented Sep 30, 2019

Just an FYI, devel/git-lite and devel/git conflict with each other but as long as either one is installed along with devel/py-gitpython iocage is able to recognize all of its commands again.

Not sure how this affects the patch that @neelchauhan submitted against the iocage port.

@olenchenko
Copy link
Author

Hi guys.
Fix mentioned by fuchst worked.
And patch by neelchauhan has been merged and iocage FreeBSD port is updated now.

Great work.
Thanks!

@mtoftum
Copy link

mtoftum commented Sep 30, 2019

The fix does indeed seem to make iocage work again, but this now forces git-lite and doesn't accept git.

@vendion
Copy link

vendion commented Sep 30, 2019

@mtoftum I echoed my previous comment about the dependency conflict upstream to ticket in the FreeBSD bugzilla. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240927#c3 feel free to also pitch in there if you have anything else worth adding.

Hopefully this is fixed before a binary package is built and copied up to the repos.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants