Affiliation:
1. University of Massachusetts at Amherst, USA
Abstract
Large-scale data centers and cloud computing have turned system configuration into a challenging problem. Several widely-publicized outages have been blamed not on software bugs, but on configuration bugs. To cope, thousands of organizations use system configuration languages to manage their computing infrastructure. Of these, Puppet is the most widely used with thousands of paying customers and many more open-source users. The heart of Puppet is a domain-specific language that describes the state of a system. Puppet already performs some basic static checks, but they only prevent a narrow range of errors. Furthermore, testing is ineffective because many errors are only triggered under specific machine states that are difficult to predict and reproduce. With several examples, we show that a key problem with Puppet is that configurations can be non-deterministic. This paper presents Rehearsal, a verification tool for Puppet configurations. Rehearsal implements a sound, complete, and scalable determinacy analysis for Puppet. To develop it, we (1) present a formal semantics for Puppet, (2) use several analyses to shrink our models to a tractable size, and (3) frame determinism-checking as decidable formulas for an SMT solver. Rehearsal then leverages the determinacy analysis to check other important properties, such as idempotency. Finally, we apply Rehearsal to several real-world Puppet configurations.
Funder
NSF
National Science Foundation
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Cited by
6 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Polyglot Code Smell Detection for Infrastructure as Code with GLITCH;2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE);2023-09-11
2. Lessons from Research to Practice on Writing Better Quality Puppet Scripts;2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER);2022-03
3. The ‘as code’ activities: development anti-patterns for infrastructure as code;Empirical Software Engineering;2020-08-17
4. Gang of eight;Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering;2020-06-27
5. Source code properties of defective infrastructure as code scripts;Information and Software Technology;2019-08