Skip to content
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

OneFlow / onegate detail #2584

Closed
7 tasks
FlorianHeigl opened this issue Nov 7, 2018 · 2 comments
Closed
7 tasks

OneFlow / onegate detail #2584

FlorianHeigl opened this issue Nov 7, 2018 · 2 comments

Comments

@FlorianHeigl
Copy link
Contributor

Description
First, oneflow only gives reasonably useful info using the --json flag.
Even without that, it should at least return the name of the service we're in.
Second, more problematic, it shows the instantiated name of the running service, but the ID of the template. We can't assume that a VM / onegate will have access to ONE, so the service template ID is not information that can be processed. We need the name instead.

Use case
I'd like to be able to change system behaviour based on the template + instance name we use.
i.e., in a very basic example, behave differently if we're called "prod" vs. "prod-standby"

Interface Changes
Modification/Extension of data returned by onegate.

Additional Context
There's no workarounds to use here, as far as I grasp it.

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@stale
Copy link

stale bot commented Nov 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team

@rsmontero
Copy link
Member

Service name is now included and can be queried through onegate

  ID USER     GROUP    NAME                                                   STARTTIME STAT            
   3 oneadmin oneadmin teeest                                            03/10 15:35:22 RUNNING         
   1 oneadmin oneadmin service-test                                      03/10 15:24:24 FAILED_DEPLOYING
oneflow-template list
  ID USER     GROUP    NAME                                                                      REGTIME
   0 oneadmin oneadmin service-test                                                       03/10 15:24:15
#Inside the VM
localhost:~# onegate service show --json
{
  "SERVICE": {
    "name": "teeest",
    "id": "3",
    "state": 2,
    "roles": [
      {
        "name": "master",
        "cardinality": 1,
        "state": 2,
        "nodes": [
          {
            "deploy_id": 2,
            "running": null,
            "vm_info": {
              "VM": {
                "ID": "2",
                "UID": "0",
                "GID": "0",
                "UNAME": "oneadmin",
                "GNAME": "oneadmin",
                "NAME": "master_0_(service_3)"
              }
            }
          }
        ]
      }
    ]
  }
}```

@rsmontero rsmontero removed this from the Release 5.12.9 milestone Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants