Request: allow auto-connection for rosbot-xl (shutdown interface)

Hi,

Recently rosbot-xl snap was allowed to have auto-connection for raw-usb and shared-memory interfaces (see snapcraft forum thread)

Today we have released a new 0.11.0 version under the latest/edge channel with a new feature that requires auto-connection for the shutdown interface (sudo snap connect rosbot-xl:shutdown).

The shutdown interface is needed by rosbot-xl snap for handling the power button on the rear panel of ROSbot XL robot for a safe system shutdown. This interface is needed by this script that is run by a daemon: db_server_launcher.sh

192.168.77.2 is a static IP address of the Single Board Computer (that runs the rosbot-xl snap) within the internal Ethernet network inside ROSbot XL. When the power push-button on the rear panel of the ROSbot XL is pressed for 3 seconds, then the HTTP request is sent by the STM32 microcontroller to the 192.168.77.2:3000/shutdown endpoint handled by the script above.

I would be grateful for auto-connection feature for shutdown interface for rosbot-xl snap. Thanks!

Thanks!

Dominik from Husarion

Hey @Husarion

It looks reasonable and expected to me that rosbot-xl has the ability to shutdown the system, considering the systems where it is expected to be used. +1 from me for granting rosbot-xl auto-connection to shutdown interface

Thanks

1 Like

+1 from me as well for granting rosbot-xl auto-connection to shutdown interface

Thanks

1 Like

Thank you @jslarraz and @0xnishit for your feedback. Please let me know what is the next step to get the auto-connection for the shutdown interface?

Hey @Husarion

Please upload a new revision to the store plugging the discussed shudown interface. As soon as we noticed that it fails the automatic-review because of this plug, we will be able to grant its use and re run the automatic-review.

Thanks

Hi @jslarraz ,

We have just pushed a new release under the edge channel. It has uploaded without any errors:

However when I Install it, the following error occurs:

husarion@rosbotxl:~$ sudo snap install rosbot-xl --edge
error: cannot perform the following tasks:
- Mount snap "rosbot-xl" (12) (installation not allowed by "shutdown" plug rule of interface "shutdown")

When I install the snap from a locally built .snap file it works fine (but I need to connect the interfaces manually).

Please let me know whether anything more on my end is needed.

Thanks,

Dominik

Sorry, you are right. I was wrong with my assumption that it should be flagged by the automatic review.

Anyway, +2 votes for, 0 against. Granting auto-connect of shutdown to rosbot-xl. This is now live.

Please let me know if everything works as expected :slight_smile:

1 Like

Works fine, thank you!