Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap package OpenHAB 2 outdated #8

Open
DarkLite1 opened this issue Sep 23, 2017 · 11 comments
Open

Snap package OpenHAB 2 outdated #8

DarkLite1 opened this issue Sep 23, 2017 · 11 comments

Comments

@DarkLite1
Copy link

DarkLite1 commented Sep 23, 2017

@kubiko @r2geo
When trying to install the OpenHAB 2 snap package from the command line it appears only version 2.0.0 is published as Stable while the website advertises version 2.1.0 to be the latest Stable available:

[b@machine~] sudo snap info openhab 
name:      openhab
summary:   "openHAB smart home server"
publisher: openhab
contact:   [email protected]
description: |
  openHAB - a vendor and technology agnostic open source automation software for
  your home.
  
snap-id: WpdPxW72JupkC8XTgaJsig3LEHdrR56x
commands:
  - openhab.clean
  - openhab.client
  - openhab.debug
  - openhab.help
  - openhab.start
  - openhab.status
  - openhab.stop
tracking:    stable
installed:   2.0.0 (167) 85MB -
refreshed:   2017-03-09 01:35:32 +0100 CET
channels:                         
  stable:    2.0.0          (167) 85MB -
  candidate: 2.0.0          (180) 85MB -
  beta:      2.0.0-SNAPSHOT (179) 85MB -
  edge:      2.1.0-SNAPSHOT (190) 86MB -

I've also read somewhere that version 2.2.0 is in development now. Should that not be the one that should be in the Edge channel?

Is it possible to update the packages in the snap store to the latest and greatest?

Thank you for your help.

See original issue

@r2geo
Copy link
Collaborator

r2geo commented Sep 28, 2017

Hi @DarkLite1
Over the summer I have not followed this snap package too much, since I got stuck in some places.
Auto-update does not work at the moment, but there were some more fundamental issues with ubuntu core being so secure, that adding things like a usb zwave controller, usb DSMR cable or external media need a user (or me) to spin a dedicated ubuntu core image that allows these items to be connected. @kubiko created one, but that link does not exist anymore. And then there are some things with launchpad that I never 100% got to work, hence the lack of automated updates, something that was supposed to in place. Then canonical started their reorganization, that did not help move things ... etc
Last days I was looking and things may be looking a little more positive. My effort is not entirely dormant, but snail pace for sure.
Best regards,
Roeland

@kaikreuzer

@DarkLite1
Copy link
Author

Thanks for the feedback, I already thought that this was something to be done in an automated way. Shame it's such a hassle to set it up properly, because all distributions would benefit from this. Especially because Snap packages are so nice to use. There's literally no hassle in setting up Java or whatever else.

Thank you for the current snap, appreciate it. Let's hope we can automate this at some point. Fingers crossed.

@kubiko
Copy link
Collaborator

kubiko commented Oct 4, 2017

hi all
sorry for late response…..
I spent some time with snap recipe now, and hopefully this will help to make build lot more automated. Old version needed essentially git commit for each new version. Now it should determine version automatically from pom.xml. It's pointed to build from master on openhab-distro, but it also tries to determine if master is just one commit behind latest tag and then it will build from tag instead. Hopefully this will allow us to also automate release builds. I will do pull request hopefully today once I'm done with more testing.
So missing part is changing this somehow into cloud bees build. I'm not familiar with cloudbees, so I can't tell how this could be done. We can either poke Launchpad to start build, or we can do build entirely in cloudbees and only push new snaps to the store. @r2geo any idea who can help with this? If we do snap building in cloudbees, we can even reuse zip/tar ball generated there.

@r2geo can you also let me know what were some other problems you have found with new versions so I can have a look?

I also moved addons directory mapping, so user can now easily included custom addons, before it required some config changes.

@r2geo
Copy link
Collaborator

r2geo commented Oct 4, 2017

Hi Ondrej, good to see your writing. Tomorrow I will send you an email direct with some issues where I get stuck. Best regards,
Roeland

@DarkLite1
Copy link
Author

Thanks guys for the effort. Really appreciate it!

@ThyMYthOS
Copy link

Seems like Ubuntu now has a special build service for snaps: https://build.snapcraft.io/

@iNamik
Copy link

iNamik commented Sep 13, 2018

Greetings.

I was sent here via the following thread on the OpenHAB site:

Ubuntu Snappy Packaging

Confirming the official OH Snap is very outdated:
https://snapcraft.io/openhab

But looks like @kubiko may be maintaining an up-to-date version:
https://snapcraft.io/openhab-ondra

I would prefer to pull from the official repo location if possible.

@kubiko Can you comment as to the status/purpose of your OH Snap Repo and weather an update to the official Snap might be coming soon?

Thanks!

@130s
Copy link

130s commented Feb 2, 2019

Not much to add for now but I'm interested in as a user to see an updated version of OH snap. Automated build would be super, but even manual build that includes the latest OH is better than no update.

@kubiko
Copy link
Collaborator

kubiko commented Feb 3, 2019

Sorry for no response
Purpose of my snap is prototyping with new features and test builds before pushing it to upstream, and I've been quite sloppy with last part. Admittedly I should have used edge channel of OpenHAB snap instead. It was just quicker to iterate as I was not having lately time to play with it. Some features I worked on

  • new json based configuration which should be lot more flexible going forward
  • backup restore support
  • upgrade mechanism is now based on openHAB own upgrade and using configs from openHAB package, so it's way more robust to move from revision to revision
  • sorted more robust automated release and daily builds
    I will check with OpenHAB guys, I guess @r2geo should be able to help here with upstreaming the changes.
    I have two options how to build daily, on Jenkins/Cloud-bees directly or just triggering build in launchpad.
    I have also pushed some changes to snapd, so we should have full support for usb devices (zwave, zigbee) without need to tweak gadget snap.
    Help I could use now is somebody giving OpenHAB-ondra snap good test before we push all the changes to openHAB snap.....

@130s
Copy link

130s commented Oct 13, 2020

I do see the latest released OpenHAB, which is 2.5.9 IIUC https://github.com/openhab/openhab-distro/tags, is also available via snap.

$ snap info openhab
name:      openhab
summary:   openHAB smart home server
publisher: openHAB Foundation e.V. (openhab)
store-url: https://snapcraft.io/openhab
contact:   [email protected]
license:   unset
description: |
  openHAB - a vendor and technology agnostic open source automation software for your home.
commands:
  - openhab.backup
  - openhab.client
  - openhab.help
  - openhab.influx
  - openhab.karaf
  - openhab.restore
  - openhab.start
  - openhab.status
  - openhab.stop
services:
  openhab.influx-setup: oneshot, disabled, inactive
  openhab.influxd:      simple, disabled, inactive
  openhab:              simple, enabled, active
snap-id:      WpdPxW72JupkC8XTgaJsig3LEHdrR56x
tracking:     latest/stable
refresh-date: today at 10:19 UTC
channels:
  latest/stable:    2.5.9    2020-10-01 (553) 161MB -
  latest/candidate: 2.5.9    2020-10-01 (553) 161MB -
  latest/beta:      2.5.9    2020-10-01 (553) 161MB -
  latest/edge:      3.0.0.M1 2020-10-12 (581) 159MB -
installed:          2.5.9               (553) 161MB -

@davidpfarrell
Copy link

I do see the latest released OpenHAB, which is 2.5.9 IIUC https://github.com/openhab/openhab-distro/tags, is also available via snap.

Confirmed @130s' findings via openhab snap webpage ( https://snapcraft.io/openhab ) that latest/stable == 2.5.9 and latest/edge == 3.0.0.M1

This is good news! Looks like we might be able to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants