DBus API reports meaningless id

Bug #1206621 reported by Loïc Minier
This bug report is a duplicate of:  Bug #1215959: Report image versions. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Triaged
Wishlist
Unassigned

Bug Description

Hi,

system-image-dbus reports the build number from the contents of /etc/ubuntu-build which is a meaningless counter incremented from zero at the beginning of the month.

(I hate this id BTW :-)

The DBus API should report something more meaningful, perhaps the date of /etc/ubuntu-build or the contents of some other file.

Cheers,

Tags: client
Loïc Minier (lool)
tags: added: client
Barry Warsaw (barry)
summary: - [client] DBus API reports meaningless id
+ DBus API reports meaningless id
Revision history for this message
Barry Warsaw (barry) wrote :

I can't really think of anything better, except that I want to keep the general approach, which is to say, the local identifier should come from a file laid down by a package, and the target identifier should come from the server.

Build numbers are rarely human friendly. ;)

Changed in ubuntu-system-image:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Loïc Minier (lool) wrote :

So proposal:
* use stat() on the file to get a meaningful date and display that (more meaningful to an end-user)
* include build id between parenthesis, but split it to be less confusing

So instead of:
20130800
show:
2013/08/01 13:34 (201308.00)

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1206621] Re: DBus API reports meaningless id

On Aug 02, 2013, at 02:54 PM, Loïc Minier wrote:

>* use stat() on the file to get a meaningful date and display that (more
>meaningful to an end-user)

Would that show the date the update was applied, or the actual release date of
the last upgrade? Also, this may not provide a meaningful reference point if
we can't use the same information regarding the target build that the upgrade
will leave you in. In the latter case, currently *all* we know is the build
number.

>* include build id between parenthesis, but split it to be less confusing
>
>So instead of:
>20130800
>show:
>2013/08/01 13:34 (201308.00)

I do like putting the build number in parentheses. Many OSes/applications do
this with even more cryptic build numbers than ours. ;)

Revision history for this message
Loïc Minier (lool) wrote :

On Fri, Aug 02, 2013, Barry Warsaw wrote:
> >* use stat() on the file to get a meaningful date and display that (more
> >meaningful to an end-user)
> Would that show the date the update was applied, or the actual release date of
> the last upgrade? Also, this may not provide a meaningful reference point if
> we can't use the same information regarding the target build that the upgrade
> will leave you in. In the latter case, currently *all* we know is the build
> number.

stat() should show the date the upgrade was assembled on the server (I
guess it's part of the version tarball. The recovery unpacking should
preserve timestamps (or it's a bug we should fix).

I don't understand your second point

--
Loïc Minier

Revision history for this message
Barry Warsaw (barry) wrote :

In email, stgraber suggests using <device>-<channel>-<buildnumber>, e.g. mako-daily-20130700

I like that, and it would be easy to add.

Revision history for this message
Barry Warsaw (barry) wrote :

lool suggests in irc that `system-image-cli --build` would print these numbers.

Revision history for this message
Oliver Grawert (ogra) wrote :

the rootfs stamp was now moved from /var/log/installer/media-info to /etc/media-info

Revision history for this message
Barry Warsaw (barry) wrote :

I've marked this as a duplicate of #1215959 since I think resolution of that bug will magically solve this one too. If you disagree, please un-dupe and explain! :)

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.