-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This patch will instaall targetcli-fb package to bionic version. #1445
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -843,7 +843,10 @@ def create_iSCSI(params, root_dir=data_dir.get_tmp_dir()): | |
raise exceptions.TestError("Failed to install iscsi initiator" | ||
" packages") | ||
# Install linux iscsi target software targetcli | ||
iscsi_package = ["targetcli"] | ||
if distro.detect().version == '18' and distro.detect().name == 'Ubuntu': | ||
iscsi_package = ["targetcli-fb"] | ||
else: | ||
iscsi_package = ["targetcli"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if i try to install targetcli on 18.04 version it will not error out because wait_for_login(), and some times guest got crashed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The better way for this would to implement a API in utils_package that would give you the package name by querying irrespective of distro, like |
||
if not utils_package.package_install(iscsi_package): | ||
logging.error("Failed to install targetcli trying with scsi-" | ||
"target-utils or tgt package") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would break in future Ubuntu releases,