lime-packages icon indicating copy to clipboard operation
lime-packages copied to clipboard

lime-apply: remove it or update it

Open aparcar opened this issue 6 years ago • 17 comments

If watchping isn't installed the following error appears:

root@meshrc-73724b:~# lime-apply
Apply hostname
Reload network config
Reload routing protocols
Failed to parse json data: unexpected character
/usr/bin/lime-apply: line 34: /etc/init.d/watchping: not found
/usr/bin/lime-apply: line 34: /etc/init.d/watchping: not found```

aparcar avatar May 08 '18 04:05 aparcar

@p4u @axn

Is this workaround still required or can we completely remove it? https://github.com/libremesh/lime-packages/blob/master/packages/lime-system/files/usr/bin/lime-apply#L15

On bmx7 it seems to change and distribute the hostname even without a restarting/reloading bmx7 nor running lime-config

aparcar avatar May 08 '18 05:05 aparcar

@axn ping?

aparcar avatar May 13 '18 03:05 aparcar

On bmx7 it seems to change and distribute the hostname even without a restarting/reloading bmx7 nor running lime-config

Yes, because procd is handling the reloads...

dangowrt avatar May 13 '18 03:05 dangowrt

@dangowrt yes as in "it can be removed"?

aparcar avatar May 13 '18 04:05 aparcar

@dangowrt ping

aparcar avatar Jun 12 '18 02:06 aparcar

To my understanding lime-apply is a work-around from pre-procd times. Nowadays services can define reload-triggers and get signalled on configuration changes automatically. Imho lime-apply can be dropped as a whole, I never used it and I'm not aware of any use-cases where a work-around like that would be required. Anyone else?

dangowrt avatar Jun 12 '18 09:06 dangowrt

@dangowrt so Alfred lacks procd support but that should be easy to fix.

Lime apply runs a network reload, so that may be the only thing to run manually, as bmx + Alfred + watching could be reloaded via procd

aparcar avatar Jun 13 '18 03:06 aparcar

related https://github.com/openwrt-routing/packages/issues/388

aparcar avatar Jun 13 '18 09:06 aparcar

related https://github.com/openwrt-routing/packages/pull/389

aparcar avatar Jun 13 '18 11:06 aparcar

@p4u @ilario looks to me as if we can remove lime-apply now

aparcar avatar Jan 14 '19 13:01 aparcar

I never used lime-apply... Can we confirm that all its features are now achieved in another way or completely unneeded?

  • [ ] Apply hostname (wut is dis?)
  • [x] Reload ALFRED
  • [x] BMX6 stuff - Workaround until "bmx6 configReload" updates hostname
  • [x] BMX7 stuff

ilario avatar Jan 14 '19 14:01 ilario

@p4u @dangowrt you know of a better way to "apply" the hostname?

aparcar avatar Jan 14 '19 15:01 aparcar

Why would u remove it? As there is a lime-config I think it makes sense to have a lime-apply. I'm using it (via terminal) and webui uses it too.

In addition there are some extra tasks which are not covered by a reload_config or network reliad commans (such as the hostname).

El 14 de gener de 2019 16:08:47 CET, Paul Spooren [email protected] ha escrit:

@p4u @dangowrt you know of a better way to "apply" the hostname?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/libremesh/lime-packages/issues/352#issuecomment-454037184

-- Enviat des del meu dispositiu Android amb el K-9 Mail. Disculpeu la brevetat.

p4u avatar Jan 14 '19 21:01 p4u

Update (reading comments above, seems that alfred and bmx* stuff is not needed anymore, we can delete that. And we should check if stuff is missing) or drop (just rebooting for applying the new configuration)?

ilario avatar Oct 04 '19 11:10 ilario

I would not label this issue nor easy nor good first issue until we have consensus about what has to be done. What we know is that lime-apply is not 100% reliable because some things need a reboot (like changing the country code).

spiccinini avatar Oct 07 '19 22:10 spiccinini

so let's reboot things to be sure. Remove the tool and adopt the documentation to tell users to reboot after configuration

aparcar avatar Oct 07 '19 23:10 aparcar

We shouldn't reboot unless is extremely necesary, the neighbours rely on the infrastructure and we shouldn't asume reboot is harmless in a working network. We can flag which configs need reboot, and suggest it. For now, those that we have detected are:

  • country code
  • batman-adv vlan change

what else?

nicopace avatar Oct 08 '19 16:10 nicopace