Manuscript Offprint

arXiv:2609.08681

Beyond Fixed Fault Models: Comparing LLM-Based and Rule-Based Fault Injection in OpenStack

Giuseppe De Rosa, Pietro Liguori, Domenico Cotroneo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Giuseppe De Rosa ∗†^{*}\dagger, Pietro Liguori ∗^{*}, Domenico Cotroneo ‡^{\ddagger}

∗^{*} University of Naples Federico II, Naples, Italy

†^{\dagger} IMT School for Advanced Studies Lucca, Lucca, Italy

‡^{\ddagger} University of North Carolina at Charlotte, Charlotte, NC, USA

{giuseppe.derosa20, pietro.liguori}@unina.it, d.cotroneo@charlotte.edu

Abstract—Software Fault Injection (SFI) supports testing of cloud systems by introducing software defects and observing their manifestation. Rule-based injectors such as ProFIPy provide controlled and reproducible source-level mutations but require fault patterns to be encoded manually. Large Language Models (LLMs) offer a data-driven alternative by generating context-dependent software faults. We compare two code LLMs, Qwen2.5-Coder and DeepSeek-Coder, with ProFIPy in OpenStack's Nova and Cinder services. On shared injection targets, activation and observable-failure rates are comparable, but operational profiles differ: LLM-generated faults produce more Catastrophic outcomes on Nova, whereas ProFIPy produces more Silent and Multi-component effects. The sampled LLM outputs also differ in how they manifest failure, while showing greater agreement in their propagation scope. These findings show that LLM-based fault injection extends the behavioral coverage of fixed fault models without establishing general superiority, and that practical adoption still requires controlled generation, runtime validation, system-level oracles, and reproducible experimental provenance.

Index Terms—software fault injection, large language models, OpenStack, cloud, mutation testing

I. INTRODUCTION

Cloud platforms must remain available and preserve a consistent state despite software defects, partial failures, and complex interactions among distributed services. This is particularly challenging for Infrastructure-as-a-Service platforms such as OpenStack [1], where a single operation may involve APIs, message queues, databases, hypervisors, storage backends, and asynchronous workflows. A defect may remain local, propagate across services, or produce an apparently successful response while leaving the infrastructure in an inconsistent state.

Software Fault Injection (SFI) evaluates robustness by deliberately introducing defects and observing whether the resulting errors are activated, detected, tolerated, contained, or exposed as failures [2], [3]. Source-level SFI targets residual faults: implementation defects that escape testing and code review, remain latent in deployed software, and surface only under specific execution conditions [4], [5].

Their effects are not always immediately visible. For example, an OpenStack volume-attachment request may return a successful API response even though the volume is unusable. Previous experiments detected such non-fail-stop failures only through independent state assertions [6]. Assessing cloud robustness, therefore, requires both representative faults and complementary oracles able to capture client-visible errors, internal failures, and inconsistent system state.

The value of an SFI campaign largely depends on its fault model. Arbitrary syntactic mutations may not reflect defects made by developers and may lead to misleading conclusions [2]. Rule-based injectors address this problem through catalogs derived from empirical bug studies and defect taxonomies [7], [8]. They encode recurring patterns, such as omitted calls, incorrect parameters, wrong return values, and missing control flow, as transformations over the program's abstract syntax tree.

ProFIPy applies this approach to OpenStack source code [6], [9], [10]. Its catalog provides valid, reproducible, and precisely controlled mutations. However, the explored fault space is bounded by manually designed operators, and context-dependent defects that do not match an existing template may remain unexplored.

Code Large Language Models (LLMs) [11], [12] offer a generative alternative. After learning from historical residual bugs, they can use the surrounding function context to generate implementation-specific faults rather than instantiate fixed transformations. This may reduce operator-authoring effort and broaden the explored fault space, but generated outputs may be invalid, equivalent, off-target, or incompatible with the target runtime [13]. They therefore require explicit validation.

Existing work on learned mutation and LLM-based fault generation has mainly examined code-level properties, such as syntactic validity, similarity to historical defects, and mutation score [14]–[16]. These properties do not establish whether an accepted fault exposes meaningful resilience weaknesses in a deployed distributed system. It remains unclear whether generative fault models reveal operational behaviors beyond those captured by fixed catalogs or primarily produce immediate, easily observable crashes.

We investigate this question through a controlled comparison of generative and catalog-based source-level fault injection in OpenStack. Rather than asking whether an LLM can produce a syntactically different function, we examine whether its accepted faults extend the operational behavior space observed under a common deployment, workload, and set of failure oracles. Here, extension denotes additional behaviors observed in the evaluated campaign.

We study the Nova compute and Cinder block-storage services of OpenStack Pike, Qwen2.5-Coder and DeepSeek-Coder are fine-tuned on PyResBugs [17] and compared with ProFIPy using the same testbed, workload, coverage measurements, and failure oracles [10]. Since validation produces different accepted target sets, we report both campaign-level results and a location-controlled analysis over functions shared by all three injectors.

We address the following research questions:

  • RQ1 (Failure behavior). How do generative and rule-based fault models differ in the failures they expose?
  • RQ2 (Failure propagation). How do generative and rule-based faults differ in their propagation across system components?
  • RQ3 (Generative diversity). How much does the choice of the generative model affect the operational behavior of injected faults?

Our results show that the two approaches expose complementary behaviors. On shared Nova targets, accepted LLM-generated faults cause more service-level crashes, whereas ProFIPy produces more Silent failures, in which an operation appears successful despite an inconsistent resource state. Throughout the campaign, ProFIPy faults propagate more frequently among components, whereas LLM-generated effects are predominantly local or result in immediate service disruption. Qwen and DeepSeek also produce different failure outcomes at the same locations, although their system-level impact is more strongly shaped by the target service and injection point. Overall, generative fault models broaden contextual exploration while complementing the control of fixed operator catalogs.

References (33)

  • OpenStack: Open source cloud computing infrastructure
  • On fault representativeness of software fault injection
  • Assessing dependability with software fault injection: A survey
  • Will it break in production? metric-driven prediction of residual defects in python systems
  • What makes software bugs escape testing? evidence from a large-scale empirical study
  • How bad can a bug get? an empirical analysis of software failures in the OpenStack cloud computing platform
  • Emulation of software faults: A field data study and a practical approach
  • Orthogonal defect classification—a concept for in-process measurements
  • Injecting software faults in Python applications: The OpenStack case study
  • ProFIPy: Programmable software fault injection as-a-service
  • Qwen2.5-Coder Technical Report
  • DeepSeek-Coder: When the large language model meets programming—the rise of code intelligence (opens arXiv in a new tab)
  • Quality in, quality out: Investigating training data’s role in AI code generation
  • LLMorphheus: Mutation testing using large language models
  • Boosting LLMs for mutation generation
  • Learning how to mutate source code from bug-fixes
  • PyResBugs: A dataset of residual python bugs for natural language-driven fault injection
  • Fault injection techniques and tools
  • Cosmos: A fault injection framework to assess hardware-assisted hypervisors
  • An analysis and survey of the development of mutation testing
  • Practical and representative faultloads for large-scale software systems
  • Are mutants a valid substitute for real faults in software testing?
  • FATE and DESTINI: A framework for cloud recovery testing
  • Lineage-driven fault injection
  • Service-level fault injection testing
  • Efficient exposure of partial failure bugs in distributed systems with inferred abstract states
  • Neural fault injection: Generating software faults from natural language
  • QLoRA: Efficient finetuning of quantized LLMs
  • LoRA: Low-rank adaptation of large language models
  • On fault resilience of OpenStack
  • coverage.py: Code coverage measurement for Python
  • Comparing operating systems using robustness benchmarks
  • OpenStack fault injection environment