Skip to content

UPSTREAM: 15537: cache instance id and use it for volume management - #5272

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
jsafrane:cinder-hostname
Nov 9, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
jsafrane:cinder-hostname

Conversation

@jsafrane

Copy link
Copy Markdown
Contributor

Depending on OpenStack deployment, hostname of a virtual machine (a.k.a server)
is either directly the machine [instanceName] or [instanceName].[domain].

Now, when looking for appropriate OpenStack object representing a virtual
machine try to remove the domain component from hostname if search for full
hostname fails.

Tracked upstream as kubernetes/kubernetes#15537

@openshift-bot openshift-bot removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 22, 2015
@smarterclayton

Copy link
Copy Markdown
Contributor

For the commit, start the first line with "UPSTREAM: 15537: ..."

@liggitt

liggitt commented Oct 26, 2015

Copy link
Copy Markdown
Contributor

Wait until the approach in the upstream PR settles before merging this

@mrry550

mrry550 commented Nov 4, 2015

Copy link
Copy Markdown

@smarterclayton @liggitt - sounds like this PR will resolve https://bugzilla.redhat.com/show_bug.cgi?id=1273739 - can I get eyes here to determine whether this is a 3.1 blocker? @jsafrane thinks it should be.

@smarterclayton

Copy link
Copy Markdown
Contributor

Did the upstream PR stabilize?

@liggitt

liggitt commented Nov 4, 2015

Copy link
Copy Markdown
Contributor

I would vote for 3.1.1

@smarterclayton

Copy link
Copy Markdown
Contributor

I need a really strong argument to risk merging this - it's missed all the
easy windows.

On Wed, Nov 4, 2015 at 3:32 PM, Jordan Liggitt [email protected]
wrote:

I would vote for 3.1.1

—
Reply to this email directly or view it on GitHub
#5272 (comment).

@jsafrane

jsafrane commented Nov 5, 2015

Copy link
Copy Markdown
Contributor Author

The argument here is OSE can't use Cinder volumes on OSP, at least not in our deployment, as pointed out by our QA.

I am not able to judge if it's blocker or not - how many users have OpenShift on OpenStack? How many of them want to use Cinder volumes? How many of them have the same problem as our QA has? How big is the other half of happy OSE on OSP users, which could be damaged by broken patch?

@smarterclayton

Copy link
Copy Markdown
Contributor

Can you update the commit message so that it follows format described by
Jordan (which is required by our automated processes to ensure it is
preserved on rebases)?

So without this change, it is impossible to use Cinder volumes on OSP?

On Thu, Nov 5, 2015 at 10:49 AM, Jan Šafránek [email protected]
wrote:

The argument here is OSE can't use Cinder volumes on OSP, at least not in
our deployment, as pointed out by our QA.

I am not able to judge if it's blocker or not - how many users have
OpenShift on OpenStack? How many of them want to use Cinder volumes? How
many of them have the same problem as our QA has? How big is the other half
of happy OSE on OSP users, which could be damaged by broken patch?

—
Reply to this email directly or view it on GitHub
#5272 (comment).

…nagement.

Hostnames are not related to server names or instance IDs in any way,
don't use them when attaching/detaching volumes.
@jsafrane

jsafrane commented Nov 6, 2015

Copy link
Copy Markdown
Contributor Author

So without this change, it is impossible to use Cinder volumes on OSP?

IMO yes, it's impossible to use Cinder without dirty workarounds.

At least on both OpenStack deployment I have seen (and no, I am not OpenStack engineer nor admin, who knows how it behaves anywhere else...)

@smarterclayton

Copy link
Copy Markdown
Contributor

[test]

@smarterclayton

Copy link
Copy Markdown
Contributor

@childsb @pweil- can you sign off on this change being necessary for 3.1 given Jan's input? @danmcp fyi

@childsb

childsb commented Nov 6, 2015

Copy link
Copy Markdown
Contributor

Yes we should merge this. the risk is very low and the workaround isn't pretty and could break other things. @smarterclayton

@pweil-

pweil- commented Nov 6, 2015

Copy link
Copy Markdown

it does not look like this is in sync with the upstream patch. I would wait for that to settle to update before merging.

Otherwise I agree that this is necessary if Ceph is unusable.

@smarterclayton

Copy link
Copy Markdown
Contributor

Can we drive the upstream one to closure in the next few hours?

@liggitt liggitt added this to the 1.1.0 milestone Nov 8, 2015
@liggitt

liggitt commented Nov 8, 2015

Copy link
Copy Markdown
Contributor

had three questions on the upstream PR, adding to milestone for triage

@jsafrane

jsafrane commented Nov 9, 2015

Copy link
Copy Markdown
Contributor Author

I reworked the upstream patch completely and synced it here.

@liggitt

liggitt commented Nov 9, 2015

Copy link
Copy Markdown
Contributor

added comments upstream... I'm a lot more comfortable with the new approach, just a few final comments

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 3182aac

@jsafrane

jsafrane commented Nov 9, 2015

Copy link
Copy Markdown
Contributor Author

Synced again, all @liggitt's remarks are fixed.

@smarterclayton

Copy link
Copy Markdown
Contributor

This has my approval, @DanMP, any disagreement?

@openshift-bot

Copy link
Copy Markdown
Contributor

@liggitt liggitt changed the title upstream: openstack: Remove domain name when trying to resolve a hostname UPSTREAM: 15537: cache instance id and use it for volume management Nov 9, 2015
@liggitt

liggitt commented Nov 9, 2015

Copy link
Copy Markdown
Contributor

LGTM

@smarterclayton smarterclayton added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 9, 2015
@danmcp

danmcp commented Nov 9, 2015

Copy link
Copy Markdown

@smarterclayton No disagreement. Should make the next build.

@liggitt

liggitt commented Nov 9, 2015

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3969/) (Image: devenv-rhel7_2664)

@liggitt

liggitt commented Nov 9, 2015

Copy link
Copy Markdown
Contributor

infrastructure flake:

fatal: '/data/src/github.com/openshift/source-to-image-bare' does not appear to be a git repository
fatal: Could not read from remote repository.

@liggitt

liggitt commented Nov 9, 2015

Copy link
Copy Markdown
Contributor

re[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 3182aac

openshift-bot pushed a commit that referenced this pull request Nov 9, 2015
@openshift-bot
openshift-bot merged commit abfc3c4 into openshift:master Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/storage priority/P1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants