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

Unable to create volume with specified hostname #476

Closed
fbalak opened this issue May 25, 2017 · 1 comment
Closed

Unable to create volume with specified hostname #476

fbalak opened this issue May 25, 2017 · 1 comment

Comments

@fbalak
Copy link

fbalak commented May 25, 2017

It seems that I was unable to create gluster volume due to missing key in etcd (job failed). It was searching for ip but I provided hostname a hostname in API call. In documentation is also used hostname. Under /indexes/ip are stored only ip addresses of nodes.

http://hostname/api/1.0/jobs/8aa6a3be-0ad9-40d7-baf8-aa93db73a54b/messages
[
    {
        "publisher": "gluster_integration",
        "job_id": "8aa6a3be-0ad9-40d7-baf8-aa93db73a54b",
        "timestamp": "2017-05-25T14:07:55.782234+00:00",
        "caller": {
            "function": "_run",
            "line_no": 175,
            "filename": "/usr/lib/python2.7/site-packages/tendrl/commons/jobs/__init__.py"
        },
        "payload": {
            "message": "Processing Job 8aa6a3be-0ad9-40d7-baf8-aa93db73a54b"
        },
        "priority": "info",
        "parent_id": null,
        "node_id": "5c7df3ec-096c-4338-b5e4-94fb33598cc6",
        "cluster_id": null,
        "flow_id": "1951e821-7aa9-4a91-8183-e73bc8275b8e",
        "message_id": "3b51bb53-5ab9-474e-8c9a-2cf1c277ce67"
    },
    {
        "publisher": "gluster_integration",
        "job_id": "8aa6a3be-0ad9-40d7-baf8-aa93db73a54b",
        "timestamp": "2017-05-25T14:07:55.783560+00:00",
        "caller": {
            "function": "_run",
            "line_no": 187,
            "filename": "/usr/lib/python2.7/site-packages/tendrl/commons/jobs/__init__.py"
        },
        "payload": {
            "message": "Running Flow gluster.flows.CreateVolume"
        },
        "priority": "info",
        "parent_id": null,
        "node_id": "5c7df3ec-096c-4338-b5e4-94fb33598cc6",
        "cluster_id": null,
        "flow_id": "1951e821-7aa9-4a91-8183-e73bc8275b8e",
        "message_id": "33a75371-92c7-4cb2-9294-23009fc7a7d5"
    },
    {
        "publisher": "gluster_integration",
        "job_id": "8aa6a3be-0ad9-40d7-baf8-aa93db73a54b",
        "timestamp": "2017-05-25T14:07:55.784205+00:00",
        "caller": {
            "function": "run",
            "line_no": 18,
            "filename": "/usr/lib/python2.7/site-packages/tendrl/gluster_integration/flows/create_volume/__init__.py"
        },
        "payload": {
            "message": "Starting creation flow for volume Vol_test"
        },
        "priority": "info",
        "parent_id": null,
        "node_id": "5c7df3ec-096c-4338-b5e4-94fb33598cc6",
        "cluster_id": "9a81126f-a390-443d-b680-3776f2f8f444",
        "flow_id": "1951e821-7aa9-4a91-8183-e73bc8275b8e",
        "message_id": "2cb038cd-9d4c-4ee3-8774-fd62b4e78487"
    },
    {
        "publisher": "gluster_integration",
        "job_id": "8aa6a3be-0ad9-40d7-baf8-aa93db73a54b",
        "timestamp": "2017-05-25T14:07:56.206329+00:00",
        "caller": {
            "function": "run",
            "line_no": 25,
            "filename": "/usr/lib/python2.7/site-packages/tendrl/gluster_integration/objects/volume/atoms/named_volume_not_exists/__init__.py"
        },
        "payload": {
            "message": "Checking if volume Vol_test doesnt exist"
        },
        "priority": "info",
        "parent_id": null,
        "node_id": "5c7df3ec-096c-4338-b5e4-94fb33598cc6",
        "cluster_id": "9a81126f-a390-443d-b680-3776f2f8f444",
        "flow_id": "1951e821-7aa9-4a91-8183-e73bc8275b8e",
        "message_id": "9a2777ad-e244-4267-bb77-57f22f5bdf27"
    },
    {
        "publisher": "gluster_integration",
        "job_id": "8aa6a3be-0ad9-40d7-baf8-aa93db73a54b",
        "timestamp": "2017-05-25T14:07:56.633634+00:00",
        "caller": {
            "function": "run",
            "line_no": 53,
            "filename": "/usr/lib/python2.7/site-packages/tendrl/gluster_integration/objects/volume/atoms/create/__init__.py"
        },
        "payload": {
            "message": "Creating the volume Vol_test"
        },
        "priority": "info",
        "parent_id": null,
        "node_id": "5c7df3ec-096c-4338-b5e4-94fb33598cc6",
        "cluster_id": "9a81126f-a390-443d-b680-3776f2f8f444",
        "flow_id": "1951e821-7aa9-4a91-8183-e73bc8275b8e",
        "message_id": "bd86485e-d592-4f95-a622-7f70ae16524d"
    },
    {
        "publisher": "gluster_integration",
        "job_id": "8aa6a3be-0ad9-40d7-baf8-aa93db73a54b",
        "timestamp": "2017-05-25T14:08:30.910414+00:00",
        "caller": {
            "function": "run",
            "line_no": 72,
            "filename": "/usr/lib/python2.7/site-packages/tendrl/gluster_integration/objects/volume/atoms/create/__init__.py"
        },
        "payload": {
            "message": "Created the volume Vol_test"
        },
        "priority": "info",
        "parent_id": null,
        "node_id": "5c7df3ec-096c-4338-b5e4-94fb33598cc6",
        "cluster_id": "9a81126f-a390-443d-b680-3776f2f8f444",
        "flow_id": "1951e821-7aa9-4a91-8183-e73bc8275b8e",
        "message_id": "4b8c6320-8047-41f7-88b8-d8a6bc175f2c"
    },
    {
        "publisher": "gluster_integration",
        "job_id": "8aa6a3be-0ad9-40d7-baf8-aa93db73a54b",
        "timestamp": "2017-05-25T14:08:30.922068+00:00",
        "caller": {
            "function": "_run",
            "line_no": 228,
            "filename": "/usr/lib/python2.7/site-packages/tendrl/commons/jobs/__init__.py"
        },
        "payload": {
            "message": "Job failed Key not found : /indexes/ip/hostname_of_first_gluster_machine: Key not found : /indexes/ip/hostname_of_first_gluster_machine"
        },
        "priority": "error",
        "parent_id": null,
        "node_id": "5c7df3ec-096c-4338-b5e4-94fb33598cc6",
        "cluster_id": null,
        "flow_id": "1951e821-7aa9-4a91-8183-e73bc8275b8e",
        "message_id": "368e1736-b4ae-4cd7-9ba8-cd0c4585f763"
    }
]

Tested with:
tendrl-gluster-integration-1.3.0-1.el7.centos.noarch
tendrl-performance-monitoring-1.3.0-1.el7.centos.noarch
tendrl-api-1.3.0-1.el7.centos.noarch
tendrl-node-agent-1.3.0-1.el7.centos.noarch
tendrl-commons-1.3.0-1.el7.centos.noarch
tendrl-dashboard-1.3.0-1.el7.centos.noarch

@nnDarshan
Copy link
Contributor

We have a patch for that: Tendrl/gluster-integration#272
you would be getting a build with fix soon. Till then volume creation with ip instead of hostname should work

@r0h4n r0h4n closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants