deploy anbox cloud on huawei hi1616 arm cpu failed

Bug #2073050 reported by TianJinkun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anbox Cloud
Invalid
Undecided
Unassigned
Canonical Juju
New
Undecided
Unassigned

Bug Description

I'm trying to deploy anbox cloud to my server with Huawei hi1616 ARM CPU installed, but I got an error:
status: error
error: Failed to bootstrap Juju controller
update-available: false
reboot-needed: false
version: 1.22.1

An error occurred while bootstrapping the Anbox Cloud Appliance.

You can find more information about the failure in the log file at
/var/snap/anbox-cloud-appliance/common/logs/bootstrap.log

You can either file a bug report at https://bugs.launchpad.net/anbox-cloud/+filebug
or ask for help at https://discourse.ubuntu.com/c/anbox-cloud

I tried ubuntu 20.04 and ubuntu 22.04, but I got this error.the error log is in the attachment.and here is my lscpu info:
husky@aic:~$ lscpu
Architecture: aarch64
  CPU op-mode(s): 32-bit, 64-bit
  Byte Order: Little Endian
CPU(s): 64
  On-line CPU(s) list: 0-63
Vendor ID: ARM
  Model name: Cortex-A72
    Model: 2
    Thread(s) per core: 1
    Core(s) per socket: 32
    Socket(s): 2
    Stepping: r0p2
    BogoMIPS: 100.00
    Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
Caches (sum of all):
  L1d: 2 MiB (64 instances)
  L1i: 3 MiB (64 instances)
  L2: 16 MiB (16 instances)
  L3: 64 MiB (4 instances)
NUMA:
  NUMA node(s): 4
  NUMA node0 CPU(s): 0-15
  NUMA node1 CPU(s): 16-31
  NUMA node2 CPU(s): 32-47
  NUMA node3 CPU(s): 48-63
Vulnerabilities:
  Gather data sampling: Not affected
  Itlb multihit: Not affected
  L1tf: Not affected
  Mds: Not affected
  Meltdown: Not affected
  Mmio stale data: Not affected
  Retbleed: Not affected
  Spec rstack overflow: Not affected
  Spec store bypass: Vulnerable
  Spectre v1: Mitigation; __user pointer sanitization
  Spectre v2: Vulnerable
  Srbds: Not affected
  Tsx async abort: Not affected

Revision history for this message
TianJinkun (jinkun) wrote :
Revision history for this message
Alexis Janon (ajanon) wrote (last edit ):

Hi!

Thanks for the report.

Looking through the logs, we can find:

2024-07-14 09:23:06 INFO juju.packaging.manager run.go:88 Running: snap install --channel 4.4/stable juju-db
ERROR failed to start mongo: juju-db snap not installed correctly. Executable /snap/bin/juju-db.mongod
Error: signal: illegal instruction (core dumped)

The error stems from the juju-db snap, which we do not manage.

Thanks!

Changed in anbox-cloud:
status: New → Invalid
Revision history for this message
Gary.Wang (gary-wzl77) wrote :

When deploying anbox cloud appliance on a VM(Ubuntu22.04|arm64) launched from the MAAS, a similar problem also occurred.
```
Installing Juju machine agent
2024-07-15 09:47:29 INFO juju.cmd supercommand.go:56 running jujud [2.9.42 7b871e782195bdac9c90f8a8f01723cc3e08ab92 gc go1.19.6]
2024-07-15 09:47:30 INFO juju.agent identity.go:22 writing system identity file
2024-07-15 09:47:30 ERROR juju.mongo mongo.go:651 could not set the value of "/sys/kernel/mm/transparent_hugepage/enabled" to "never" because of: open /sys/kernel/mm/transparent_hugepage/enabled: permission denied
2024-07-15 09:47:30 ERROR juju.mongo mongo.go:651 could not set the value of "/sys/kernel/mm/transparent_hugepage/defrag" to "never" because of: open /sys/kernel/mm/transparent_hugepage/defrag: permission denied
2024-07-15 09:47:30 ERROR juju.mongo mongo.go:651 could not set the value of "/proc/sys/net/core/somaxconn" to "16384" because of: "/proc/sys/net/core/somaxconn" does not exist, will not set "16384"
2024-07-15 09:47:30 ERROR juju.mongo mongo.go:651 could not set the value of "/proc/sys/net/core/netdev_max_backlog" to "1000" because of: "/proc/sys/net/core/netdev_max_backlog" does not exist, will not set "1000"
2024-07-15 09:47:30 WARNING juju.mongo mongo.go:481 overwriting args.dataDir (set to /var/lib/juju) to /var/snap/juju-db/common
2024-07-15 09:47:30 INFO juju.mongo mongo.go:486 Ensuring mongo server is running; data directory /var/snap/juju-db/common; port 37017
2024-07-15 09:47:30 WARNING juju.mongo service.go:323 configuring mongod with --noauth flag enabled
2024-07-15 09:47:30 INFO juju.packaging manager.go:103 installing "juju-db" via "snap"
2024-07-15 09:47:30 INFO juju.packaging.manager run.go:88 Running: snap install --channel 4.4/stable juju-db
ERROR failed to start mongo: juju-db snap not installed correctly. Executable /snap/bin/juju-db.mongod
Error: signal: illegal instruction (core dumped)
ERROR failed to bootstrap model: subprocess encountered error code 1
```

Revision history for this message
Ian Booth (wallyworld) wrote :

Launchpad builders are used to build all the supported arches - the juju-db snap pulls a pinned upstream mongodb version and builds that with no changes. We do some testing on arm64 on AWS. Off the top of my head, without further investigation, I have no idea what's different with your arm hardware.

Revision history for this message
Joseph Phillips (manadart) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.