Skip to content

V2 podman system service#5634

Merged
openshift-merge-robot merged 1 commit into
containers:masterfrom
jwhonce:wip/service
Apr 9, 2020
Merged

V2 podman system service#5634
openshift-merge-robot merged 1 commit into
containers:masterfrom
jwhonce:wip/service

Conversation

@jwhonce
Copy link
Copy Markdown
Member

@jwhonce jwhonce commented Mar 27, 2020

  • Added support for system service
  • Enabled linting on the varlinkapi source, needed to support V2
    service command
  • Add hack/golangci-lint.sh to support linting with multiple sets of build tags

Signed-off-by: Jhon Honce jhonce@redhat.com

@jwhonce jwhonce requested a review from baude March 27, 2020 01:49
@jwhonce jwhonce self-assigned this Mar 27, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 27, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jwhonce

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 27, 2020
@rh-atomic-bot
Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #5618) made this pull request unmergeable. Please resolve the merge conflicts.

@mheon
Copy link
Copy Markdown
Member

mheon commented Mar 27, 2020

Are we doing Varlink in V2? Can we get away with keeping varlink support on a 1.0 branch?

@baude
Copy link
Copy Markdown
Member

baude commented Mar 27, 2020

Are we doing Varlink in V2? Can we get away with keeping varlink support on a 1.0 branch?

unfortunately, we are going to have to for some amount of time. i would love to talk about how to fence it off with a build tag so we could begin deprecating in fedora.

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Mar 27, 2020

Var link will need to be supported for the length of RHEL8, I think or at least until RHEL8.6

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Mar 27, 2020

We can begin deprecating it in Fedora 33.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 27, 2020
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 1, 2020
@jwhonce jwhonce changed the title [WIP] V2 podman system service V2 podman system service Apr 1, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 1, 2020
@jwhonce jwhonce force-pushed the wip/service branch 4 times, most recently from 1dcf215 to a37592e Compare April 2, 2020 23:01
@jwhonce jwhonce requested a review from cevich April 2, 2020 23:07
Copy link
Copy Markdown
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally. Overall LGTM. One thing I noticed is that the service silently returns when the socket is already present. The previous behavior was to error out. I believe we should only error out iff the socket is in use.

Comment thread hack/golangci-lint.sh Outdated
Copy link
Copy Markdown
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some behavioral change. v1 throws an error if the socket already exists, v2 exits without an error.

Comment thread pkg/domain/entities/system.go Outdated
Comment thread pkg/domain/entities/system.go Outdated
@jwhonce jwhonce force-pushed the wip/service branch 2 times, most recently from 3268fed to 798f561 Compare April 3, 2020 17:35
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 3, 2020

/lgtm
/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 3, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 3, 2020
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 3, 2020
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 5, 2020
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Apr 7, 2020
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 7, 2020

@jwhonce Needs rebase.

@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 8, 2020
* Added support for system service
* Enabled linting on the varlinkapi source, needed to support V2
  service command
* Added support for PODMAN_SOCKET

Skip linting deprecated code

Rather than introduce bugs by correcting deprecated code, linting the
code is being skipped. Code that is being ported into V2 is being
checked.

Signed-off-by: Jhon Honce <jhonce@redhat.com>
Comment thread hack/golangci-lint.sh
[[ $1 == run ]] && shift

for i in tunnel abi; do
echo Build Tags: ${BUILD_TAGS[$i]}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: It's good practice to always quote string arguments to echo.

@jwhonce
Copy link
Copy Markdown
Member Author

jwhonce commented Apr 8, 2020

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 8, 2020
@baude
Copy link
Copy Markdown
Member

baude commented Apr 9, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 9, 2020
@openshift-merge-robot openshift-merge-robot merged commit 555b30e into containers:master Apr 9, 2020
@rh-atomic-bot rh-atomic-bot mentioned this pull request Apr 9, 2020
@github-actions github-actions Bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants