summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMike Gerdts <mike.gerdts@joyent.com>2018-04-23 09:29:39 -0400
committerScott Moser <smoser@brickies.net>2018-04-23 09:29:39 -0400
commit4ed164592fe8cb15758cacf3cb3f8c7d5ab7c82e (patch)
tree5221b585bbeec35b46140b09f4e4396bab53503a /packages
parent23479881f51bae7a3f5743ce677ed82317ea8b9f (diff)
downloadvyos-cloud-init-4ed164592fe8cb15758cacf3cb3f8c7d5ab7c82e.tar.gz
vyos-cloud-init-4ed164592fe8cb15758cacf3cb3f8c7d5ab7c82e.zip
DataSourceSmartOS: add locking of serial device.
cloud-init and mdata-get each have their own implementation of the SmartOS metadata protocol. If cloud-init and other services that call mdata-get are run concurrently, crosstalk on the serial port can cause them both to become confused. This change makes it so that cloud-init uses the same cooperative locking scheme that's used by mdata-get, thus preventing cross-talk between mdata-get and cloud-init. For testing, a VM running on a SmartOS host and pyserial are required. If the tests are run on a platform other than SmartOS, those that use a real serial port are skipped. pyserial remains commented in requirements.txt because most testers will not be running atop SmartOS. LP: #1746605
Diffstat (limited to 'packages')
0 files changed, 0 insertions, 0 deletions