sdkman does not provide more java candidates on Apple Silicon M1 - apple-m1

I'm trying to install a different version of java amzn on macOS Apple Silicon M1 but it's no other candidate available than the listed ones:
Would it be possible to get extra candidates?

tl;dr
Ask your vendor of choice to publish their product via SDKMAN using simple REST API or Gradle/Maven plugin.
To refresh the list of products, run the update command.
sdk update
You asked:
install a different version of java amzn on macOS Apple Silicon
I see Amazon offering four releases of Corretto for Macs with Apple Silicon:
18
18.0.1
17.0.3.6.1
17.0.2.8.1
Details
As I understand it, the way SDKMAN works is that a vendor chooses to publish their releases via that avenue. If you want a product from a vendor not currently listed, ask that vendor to make their product available via SDKMAN.
To quote the SDKMAN web site:
SDKMAN! is unique in that it empowers SDK Vendors to publish their candidate releases on our platform. We provide a secure API that can be used to manage all aspects of a release on SDKMAN!. Such aspects include Releasing a new version, setting an existing version as Default (Stable) and Announcing the release on the SDKMAN! CLI broadcast and Twitter feed.
The process seems quite simple. See the Vendors page of the SDKMAN web site.
SDKMAN makes available a JSON REST API by which a vendor supplies their release information.
If the vendor prefers not to mess with cURL or HttpClient, they may alternatively choose to use the plugins for Gradle or Maven as the way to publish their new build.
As of 2022-04, the list of product offerings on SDKMAN for the Java platform on Macs with Apple Silicon has grown in just these last two months. When I run sdk list java, I get eight vendors offering various products that include:
Current version 18.0.1
All three LTS versions (8, 11, 17)
Early-access version of Java 19.
================================================================================
Available Java Versions for macOS ARM 64bit
================================================================================
Vendor | Use | Version | Dist | Status | Identifier
--------------------------------------------------------------------------------
Corretto | | 18 | amzn | | 18-amzn
| >>> | 18.0.1 | amzn | installed | 18.0.1-amzn
| | 17.0.3.6.1 | amzn | | 17.0.3.6.1-amzn
| | 17.0.2.8.1 | amzn | | 17.0.2.8.1-amzn
Java.net | | 19.ea.19 | open | | 19.ea.19-open
| | 19.ea.18 | open | | 19.ea.18-open
| | 19.ea.5.lm | open | | 19.ea.5.lm-open
| | 18 | open | | 18-open
| | 18.0.1 | open | | 18.0.1-open
| | 17.0.2 | open | | 17.0.2-open
Liberica | | 18.fx | librca | | 18.fx-librca
| | 18.0.1.fx | librca | | 18.0.1.fx-librca
| | 18.0.1 | librca | | 18.0.1-librca
| | 18 | librca | | 18-librca
| | 17.0.3.fx | librca | | 17.0.3.fx-librca
| | 17.0.3 | librca | | 17.0.3-librca
| | 17.0.2.fx | librca | | 17.0.2.fx-librca
| | 17.0.2 | librca | | 17.0.2-librca
| | 11.0.15 | librca | | 11.0.15-librca
| | 11.0.14 | librca | | 11.0.14-librca
| | 8.0.332 | librca | | 8.0.332-librca
| | 8.0.322 | librca | | 8.0.322-librca
Microsoft | | 17.0.2 | ms | | 17.0.2-ms
| | 11.0.14 | ms | | 11.0.14-ms
Oracle | | 18.0.1 | oracle | | 18.0.1-oracle
| | 18 | oracle | | 18-oracle
| | 17.0.3 | oracle | | 17.0.3-oracle
| | 17.0.2 | oracle | | 17.0.2-oracle
SapMachine | | 18 | sapmchn | | 18-sapmchn
| | 18.0.1 | sapmchn | | 18.0.1-sapmchn
| | 17.0.2 | sapmchn | | 17.0.2-sapmchn
Temurin | | 18 | tem | | 18-tem
| | 17.0.2 | tem | | 17.0.2-tem
Zulu | | 18 | zulu | | 18-zulu
| | 18.fx | zulu | | 18.fx-zulu
| | 17.0.3 | zulu | | 17.0.3-zulu
| | 17.0.2 | zulu | | 17.0.2-zulu
| | 17.0.2.fx | zulu | | 17.0.2.fx-zulu
| | 11.0.15 | zulu | | 11.0.15-zulu
| | 11.0.14 | zulu | | 11.0.14-zulu
| | 8.0.332 | zulu | | 8.0.332-zulu
| | 8.0.322 | zulu | | 8.0.322-zulu
================================================================================

Related

How to update/change a created openstack flavor "name" field

I simply ask if there is any way to change an openstack flavor name after its creation with VMs using it as flavor, for example consider this flavor:
+----------------------------+--------------------+
| Field | Value |
+----------------------------+--------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| access_project_ids | None |
| description | None |
| disk | 0 |
| id | g1-1-1-0 |
| name | g1-1-1-0 |
| os-flavor-access:is_public | True |
| properties | |
| ram | 1024 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+--------------------+
How to change its name field to g1-small?

Get memory, cpu and disk usage for each tenant in Openstack

I am looking for the CPU, Memory and Disk consumption for each Tenant in Openstack,and their relationship by users, instances, flavors in use. Horizon only shows utilization of memory, cpu of a global way. Is it possible to get it with Openstack commands?
My openstack is based on Rocky.
Any ideas will be really appreciated
The only thing I know is
openstack limits show --absolute --project <Project_ID/Tenant_ID>
see also https://docs.openstack.org/python-openstackclient/pike/cli/command-objects/limits.html
In the output you have information like for example totalCoresUsed, which represents the number of cores, which are used by the selected project.
Example:
root#openstack-controller:~# openstack limits show --absolute --project 416f937f505f4ff6b623c48a61228a86
+--------------------------+-------+
| Name | Value |
+--------------------------+-------+
| maxTotalInstances | 10 |
| maxTotalCores | 20 |
| maxTotalRAMSize | 51200 |
| maxSecurityGroups | 10 |
| maxTotalFloatingIps | 10 |
| maxServerMeta | 128 |
| maxImageMeta | 128 |
| maxPersonality | 5 |
| maxPersonalitySize | 10240 |
| maxSecurityGroupRules | 20 |
| maxTotalKeypairs | 100 |
| maxServerGroups | 10 |
| maxServerGroupMembers | 10 |
| totalRAMUsed | 2560 |
| totalCoresUsed | 7 |
| totalInstancesUsed | 7 |
| totalFloatingIpsUsed | 0 |
| totalSecurityGroupsUsed | 1 |
| totalServerGroupsUsed | 0 |
| maxTotalVolumes | 10 |
| maxTotalSnapshots | 10 |
| maxTotalVolumeGigabytes | 1000 |
| maxTotalBackups | 10 |
| maxTotalBackupGigabytes | 1000 |
| totalVolumesUsed | 5 |
| totalGigabytesUsed | 7 |
| totalSnapshotsUsed | 0 |
| totalBackupsUsed | 0 |
| totalBackupGigabytesUsed | 0 |
+--------------------------+-------+
The quotas and so the limitations are bind to projects and not to users, so I don't know if it is possible to get a relationshit by users. The only idea I would have, would a simple bash-script, which iterates over all instances and volumes of a project and collect the information of each ressource by the user, who created it.
Update 30.7.2020:
Found a better solution now, which also allows to get the resource usage per user of a project. It comes with the new placement-component with the stein-release of openstack (tested in train-release of openstack).
Installation of the openstack-client extension: pip install osc-placement
Ressource-usage of a project:
openstack resource usage show --os-placement-api-version 1.9 <PROJECT_ID>
Ressource-usage of a specific user within a project:
openstack resource usage show --os-placement-api-version 1.9 --user-id <USER_ID> <PROJECT_ID>
Example:
openstack resource usage show --os-placement-api-version 1.9 --user-id 98378bd3cdd94218bf7b6ef4ec80e74a 7733616a513444c2a106243db318b0dd
+----------------+-------+
| resource_class | usage |
+----------------+-------+
| VCPU | 3 |
| MEMORY_MB | 768 |
| DISK_GB | 9 |
+----------------+-------+

Is there a way to detect another host bmc alived via locl bmc?

This is my topology:
+-------------------+
| |
+---------+ ipmi switch +----+
| | | |
| +-------------------+ |
| |
| |
+---+---+ +---+---+
| | | |
| bmc | | bmc |
| | | |
+-----+-------+----------+ +-----+-------+----------+
| | | |
| | | |
| | | |
| host1 | | host2 |
| | | |
| | | |
| | | |
+-----+--------+---------+ +-----+--------+---------+
| | | |
| mgmt | | mgmt |
| nic | | nic |
+----+---+ +----+---+
| |
| |
| |
| |
| +-------------------+ |
| | | |
+----------+ mgmt switch +---+
| |
+-------------------+
Is there a way to detect bmc of host2 alive only via bmc of host1(via ipmi switch) not mgmt network(mgmt nic and mgmt switch)?
I searched man page of ipmitool and freeipmi but found nothing helpful
Under the assumption that the "bmc" NICs only do IPMI traffic and no other traffic (i.e. no normal IP traffic), I don't believe there is a way for bmc-host1 to perform IPMI traffic to bmc-host2 to detect that it is up. Client side tools in ipmitool and freeipmi are effectively doing IP traffic to a bmc on the other side. So there needs to be a way to reach bmc-host2 with normal IP traffic.

why does the frequency of my Gnocchi measurements not match the set granularity

Im running openstack and am trying to get my gnocchi meters to come through more frequently so that I can run a scaling demo without lots of 5 minute lags. In Gnocchi I have changed the Archive-policy to be a custom policy with granularity set to 30 seconds (I've also tried the following using the existing 'medium' policy and it has the same result)
+---------------------+--------------------------------------------------------+
| Field | Value |
+---------------------+--------------------------------------------------------+
| aggregation_methods | std, count, min, max, sum, mean |
| back_window | 0 |
| definition | - points: 120, granularity: 0:00:30, timespan: 1:00:00 |
| name | test |
+---------------------+--------------------------------------------------------+
the cpu_util meter is picking it up correclty
+------------------------------------+-------------------------------------------------------------------+
| Field | Value |
+------------------------------------+-------------------------------------------------------------------+
| archive_policy/aggregation_methods | std, count, min, max, sum, mean |
| archive_policy/back_window | 0 |
| archive_policy/definition | - points: 120, granularity: 0:00:30, timespan: 1:00:00 |
| archive_policy/name | test |
| created_by_project_id | e499d0c2e0fb4a05ac39c3f8c260052b |
| created_by_user_id | 21759a51f3834b9bbae49c3ed17a13e4 |
| creator | 21759a51f3834b9bbae49c3ed17a13e4:e499d0c2e0fb4a05ac39c3f8c260052b |
| id | e5a02f3a-9fbe-4e44-bb91-e1cfe6b86143 |
| name | cpu_util |
| resource/created_by_project_id | e499d0c2e0fb4a05ac39c3f8c260052b |
| resource/created_by_user_id | 21759a51f3834b9bbae49c3ed17a13e4 |
| resource/creator | 21759a51f3834b9bbae49c3ed17a13e4:e499d0c2e0fb4a05ac39c3f8c260052b |
| resource/ended_at | None |
| resource/id | 243b9715-95ba-4532-9728-3e61776e1c29 |
| resource/original_resource_id | 243b9715-95ba-4532-9728-3e61776e1c29 |
| resource/project_id | 43a7db62d5d54c4590e363868fff49e2 |
| resource/revision_end | None |
| resource/revision_start | 2018-08-08T14:05:09.770765+00:00 |
| resource/started_at | 2018-08-08T13:20:45.948842+00:00 |
| resource/type | instance |
| resource/user_id | 4e5015006b304e7ca57edc5419b42be3 |
| unit | % |
+------------------------------------+-------------------------------------------------------------------+
but the measurements are still only coming out every 5 min
gnocchi measures show e5a02f3a-9fbe-4e44-bb91-e1cfe6b86143
+---------------------------+-------------+--------------+
| timestamp | granularity | value |
+---------------------------+-------------+--------------+
| 2018-08-08T13:30:00+00:00 | 30.0 | 0.0400002375 |
| 2018-08-08T13:35:00+00:00 | 30.0 | 0.0366666763 |
| 2018-08-08T13:40:00+00:00 | 30.0 | 0.0366667101 |
| 2018-08-08T13:45:00+00:00 | 30.0 | 0.0399999545 |
| 2018-08-08T13:50:00+00:00 | 30.0 | 0.0366664861 |
| 2018-08-08T13:55:00+00:00 | 30.0 | 0.0400000543 |
| 2018-08-08T14:00:00+00:00 | 30.0 | 0.0366665877 |
+---------------------------+-------------+--------------+
any ideas what I am missing?
I had the same issue. In Gnocchi-backed Ceilometer there is a new configuration file: polling.yaml. Resources polling interval is being set there.
https://review.opendev.org/#/c/405682/
https://docs.openstack.org/ceilometer/pike/admin/telemetry-best-practices.html

Nova list fields

Is there any way to find the possible fields for the nova show --fields command? Currently I can fill the --fields parameter with anything and it never complains, just fails silently.
The docs say use the show command, but that reports a machines characteristics.
the nova show returns may different from version to version, here is an example:
$ nova show b3cdc6c0-85a7-4904-ae85-71918f734048
+-------------------------------------+-------------------------------------+
| Property | Value |
+-------------------------------------+-------------------------------------+
| OS-EXT-STS:task_state | scheduling |
| image | cirros-0.3.2-x86_64-uec |
| OS-EXT-STS:vm_state | building |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| flavor | m1.small |
| id | b3cdc6c0-85a7-4904-ae85-71918f734048|
| security_groups | [{u'name': u'default'}] |
| user_id | 376744b5910b4b4da7d8e6cb483b06a8 |
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| progress | 0 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive | |
| status | BUILD |
| updated | 2013-07-16T16:25:34Z |
| hostId | |
| OS-EXT-SRV-ATTR:host | None |
| key_name | KeyPair01 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| name | myCirrosServer |
| adminPass | tVs5pL8HcPGw |
| tenant_id | 66265572db174a7aa66eba661f58eb9e |
| created | 2013-07-16T16:25:34Z |
| metadata | {u'KEY': u'VALUE'} |
+-------------------------------------+-------------------------------------+
The property column is all the fields available to specify to --fields

Resources