You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/08/08 13:29:03 UTC
[GitHub] [cloudstack] tampler opened a new issue #5291: Null Pointer Exception while list hosts
tampler opened a new issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
* Improvement Request
* Enhancement Request
* Feature Idea
* Documentation Report
* Other
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
~~~
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
##### SUMMARY
<!-- Explain the problem/feature briefly -->
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-899487593
same as what @nvazquez have tested, I cannot reproduce the issue.
there are DB records below.
```
MariaDB [cloud]> select * from storage_pool;
+----+------------------------------------------------+--------------------------------------+------------+------+----------------+--------+------------+------------+----------------+--------------+-----------+---------------+---------------------+---------+-------------+--------+-----------------------+-------+------------+---------+---------------+--------+
| id | name | uuid | pool_type | port | data_center_id | pod_id | cluster_id | used_bytes | capacity_bytes | host_address | user_info | path | created | removed | update_time | status | storage_provider_name | scope | hypervisor | managed | capacity_iops | parent |
+----+------------------------------------------------+--------------------------------------+------------+------+----------------+--------+------------+------------+----------------+--------------+-----------+---------------+---------------------+---------+-------------+--------+-----------------------+-------+------------+---------+---------------+--------+
| 1 | ref-trl-1594-k-M7-wei-zhou-kvm1-local-4fad9008 | 4fad9008-678d-41f5-936d-bccf7c008c89 | Filesystem | 0 | 1 | 1 | 1 | 58744832 | 84012326912 | 10.0.32.142 | NULL | /localstorage | 2021-08-16 12:41:43 | NULL | NULL | Up | DefaultPrimary | HOST | KVM | 0 | NULL | 0 |
+----+------------------------------------------------+--------------------------------------+------------+------+----------------+--------+------------+------------+----------------+--------------+-----------+---------------+---------------------+---------+-------------+--------+-----------------------+-------+------------+---------+---------------+--------+
1 row in set (0.00 sec)
MariaDB [cloud]> select * from storage_pool_host_ref;
+----+---------+---------+---------------------+--------------+---------------+
| id | host_id | pool_id | created | last_updated | local_path |
+----+---------+---------+---------------------+--------------+---------------+
| 1 | 1 | 1 | 2021-08-16 12:41:43 | NULL | /localstorage |
+----+---------+---------+---------------------+--------------+---------------+
1 row in set (0.00 sec)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] nvazquez commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-895480617
Can you also provide the output of your `storage_pool_host_ref` table? Seems like the NPE is caused by a missing entry on this table
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] tampler commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
tampler commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-894802692
I also checked the SQL entries in the 'Host' table. See below

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] rhtyd commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-895109492
@tampler have you disabled local storage on the hosts, is it enabled for your zone?
Log reference seen:
```
2021-08-08 16:25:58,908 DEBUG [c.c.a.q.QueryManagerImpl] (qtp2109798150-310:ctx-8d47711c ctx-34c8bea1) (logid:92e1b525) >>>Generating Response>>>
2021-08-08 16:25:58,924 ERROR [c.c.a.ApiServer] (qtp2109798150-310:ctx-8d47711c ctx-34c8bea1) (logid:92e1b525) unhandled exception executing api command: [Ljava.lang.String;@78127f28
java.lang.NullPointerException
at com.cloud.storage.StorageManagerImpl.isLocalStorageActiveOnHost(StorageManagerImpl.java:412)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] nvazquez closed issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
nvazquez closed issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] tampler closed issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
tampler closed issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] tampler commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
tampler commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-895963430
@nvazquez Hello! Unfortunately, I've dropped those databases and restored from an initial backup. That said, I can't provide any extra debug info, unless you provide me a specific test.
Perhaps, it's better to close this issue for now since I can't debug it anymore
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] tampler commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
tampler commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-895238762
@rhtyd Hello Rohit
I'm not sure if that was a case. I'm evaluating CloudStack now and set everything on a single server. YES, I'm using local storage on my ZONE and locally
I was blocked by this issue and fixed it by dropping and restoring MYSQL databases. Do you want me to try to reproduce this with some corner case test?
Things started to work after database reset, but this may be an issue for CloudStack testing and usability
Best,
Boris
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] tampler edited a comment on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
tampler edited a comment on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-898383104
Hello, @nvazquez
I see this issue is still there in 4.16.0-Snapshot, which I built from today's master. I'm getting the following:
```
cmk> list storagepools
<empty>
cmk> list hosts
🙈 Error: (HTTP 530, error code 9999) <nil>
```

That's a fresh installation. In settings, I did:
`system.vm.use.local.storage -> true`
`ca.plugin.root.auth.strictness -> false`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] nvazquez commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-899185256
@weizhouapache can you please check if this is a regression?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] tampler commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
tampler commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-898383104
Hello, @nvazquez
I see this issue is still there in 4.16.0-Snapshot, which I built from today's master. I'm getting the following:
```
cmk> list storagepools
<empty>
cmk> list hosts
🙈 Error: (HTTP 530, error code 9999) <nil>
```

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] nvazquez commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-895478819
Hi @tampler I've tested with the latest 4.15 branch and cannot reproduce your issue, can you please verify with these packages? https://download.cloudstack.org/testing/nightly/2021-08-09/debian/4.15/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on issue #5291: Null Pointer Exception while list hosts
Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5291:
URL: https://github.com/apache/cloudstack/issues/5291#issuecomment-899353052
> h installation. In settings, I did:
> `system.vm.use.local.storage -> true`
> `ca.plugin.root.auth.strictness -> false`
@tampler
could you provide the `storage_pool` table in database ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org