ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
4.15.0.0, 4.15.1.0-RC3, 4.16
CONFIGURATION
OS / ENVIRONMENT
mysql --version
mysql Ver 14.14 Distrib 5.7.34, for Linux (x86_64)
SUMMARY
Seems to be related to MySQL only; MariaDB looks to be working fine. After some MySQL configurations to "disable" only_full_group_by then the select works.
This might be more a documentation than a cloudstack issue, but it is important to raise and track alternatives to solve/mitigate it.
This could bring problems to unaware users.
Bear in mind that the CloudStack mgmt/UI seems to be all good, even with the selects that failed; thus this is a minor issue.
STEPS TO REPRODUCE
Run a MySQL 'select' query on disk_offering_view or service_offering_view
EXPECTED RESULTS
Select offerings views in MySQL
ACTUAL RESULTS
mysql> select * from disk_offering_view limit 1;
ERROR 1055 (42000): Expression #34 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cloud.vsphere_storage_policy.value' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
mysql> select * from service_offering_view limit 1;
ERROR 1055 (42000): Expression #34 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cloud.vsphere_storage_policy.value' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Might be related to schema-41400to41500.sql#L423.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
Seems to be related to MySQL only; MariaDB looks to be working fine. After some MySQL configurations to "disable"
only_full_group_bythen the select works.This might be more a documentation than a cloudstack issue, but it is important to raise and track alternatives to solve/mitigate it.
This could bring problems to unaware users.
Bear in mind that the CloudStack mgmt/UI seems to be all good, even with the selects that failed; thus this is a minor issue.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Might be related to schema-41400to41500.sql#L423.