Project

General

Profile

Actions

Feature #6433

closed

teuthology: make tgt task

Added by Sage Weil over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:

Related issues 1 (0 open1 closed)

Related to teuthology - Feature #6573: teuthology: create iscsi initiator taskResolved10/16/2013

Actions
Actions #1

Updated by Sage Weil over 10 years ago

  • Translation missing: en.field_story_points set to 3.00
Actions #2

Updated by Ian Colle over 10 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Ian Colle over 10 years ago

  • Assignee set to Anonymous
Actions #4

Updated by Neil Levine over 10 years ago

  • Target version changed from v0.71-rc1 to v0.72 Emperor
Actions #5

Updated by Anonymous over 10 years ago

  • Status changed from In Progress to Fix Under Review
  • Assignee changed from Anonymous to Ian Colle

A version of this is ready for review. Right now, I am running into a problem with the tgtadm command that I ran into with Dan last week. I believe that he should review this, and can probably help with fixing that issue.

The current code does not execute those commands that are still problematical (they are implemented with 'echo' preceding them).

The version with the changes has been pushed to wip-teuthology-tgt-wusui

Actions #6

Updated by Ian Colle over 10 years ago

  • Assignee changed from Ian Colle to Zack Cerza
Actions #7

Updated by Ian Colle over 10 years ago

  • Assignee changed from Zack Cerza to Dan Mick
Actions #8

Updated by Dan Mick over 10 years ago

  • Status changed from Fix Under Review to In Progress
  • Assignee changed from Dan Mick to Anonymous

AFAIK there's more work to find and install the ceph-extras version of tgt; the problem was
the Ubuntu Precise version was installed.

Actions #9

Updated by Dan Mick over 10 years ago

  • Project changed from rbd to teuthology
  • Target version deleted (v0.72 Emperor)
Actions #10

Updated by Anonymous over 10 years ago

There are some issues installing the tgt stuff first.

I thought that this would work:


echo "deb http://ceph.com/packages/ceph-extras/debian/ precise main" |
sudo tee /etc/apt/sources.list.d/ceph-extras.list 

sudo apt-get update -y && sudo apt-get upgrade -y

sudo apt-get install tgt (maybe as tgt=...)

However, the the update and upgrade portions run into all sorts of problems.
I ran these by hand and noticed that the ceph-extras update also updates grub and breaks out of the installation with a pink screen to ask for the user to pick a grub file. This may be why the update and upgrade when run in the background have issues.

Also, installing the whole ceph-extras seems bad to me because we may not want all these features but would want tgt.

I am either missing something (a way of allowing the apt-get upgrade to only upgrade some of the debs), or I could fall back on the following:

wget -q -O- 'https://ceph.com/packages/ceph-extras/debian/pool/main/t/tgt
/tgt_1.0.38-14.e884cd.precise.ceph_amd64.deb' > /tmp/local.deb
sudo dpkg -i /tmp/local.deb

Of course, the actual code would do a lot of the figuring (it won't be so
hardcoded). This does use dpkg instead of apt-get and has the problem that the new tgt would not be seen in the apt-get index.

Actions #11

Updated by Anonymous over 10 years ago

Now that I have looked at things a little bit more. I think I've figured this out. The apt-get update updates the package cache but does not install things. I should not do an upgrade but instead just apt-get install the new tgt after i get it locally. So the steps are just:

add the ceph-extras.list file
apt-get update
apt-get install tgt

Actions #12

Updated by Anonymous over 10 years ago

  • Status changed from In Progress to Fix Under Review
  • Assignee changed from Anonymous to Dan Mick

wip-teuthology-tgt-wusui should be the version to review.

Actions #13

Updated by Zack Cerza over 10 years ago

  • Target version set to v0.72 Emperor
Actions #14

Updated by Sage Weil over 10 years ago

  • Target version deleted (v0.72 Emperor)
Actions #15

Updated by Sage Weil over 10 years ago

  • Target version set to v0.72 Emperor
Actions #16

Updated by Anonymous over 10 years ago

A new version has been pushed to origin.

The one issue at this point is developing reasonable test scripts. We still may have to modify this to incorporate some of the behavior that the rbd task does in order to get test cases running. We can write simple cases that write to the device and read from the rbd.

The /dev/disk/by-path link can be used to find the physical device name.

Actions #17

Updated by Anonymous over 10 years ago

A new version of wip-teuthology-tgt-wusui has been pushed to origin

I believe that this one is ready for prime time.

Please review. Thanks.

Actions #18

Updated by Anonymous over 10 years ago

  • Status changed from Fix Under Review to Resolved

This change has been checked in to master

Actions

Also available in: Atom PDF