Skip to content

snapshots of read only disks take all available memory #9855

Closed

Description

@leftwo

During an online update, we noticed a problem
@askfongjojo noticed that blueprint_executor hit an error:

Communication Error: error sending request for url (http://[fd00:1122:3344:107::1]:12345/omicron-config)

Getting status from some sleds resulted in errors:

root@oxz_switch0:~# pilot host exec -c 'ipadm | grep 1122' 0-31
 2  BRM22250001        ok: underlay0/sled6   static   ok           fd00:1122:3344:128::1/64
 3  BRM13250012        ok: underlay0/sled6   static   ok           fd00:1122:3344:129::1/64
 7  BRM27230045        ok: underlay0/sled6   static   ok           fd00:1122:3344:127::1/64
 8  BRM44220011        ok: underlay0/sled6   static   ok           fd00:1122:3344:103::1/64
 9  BRM44220005        ok: underlay0/sled6   static   ok           fd00:1122:3344:105::1/64
10  BRM42220009        failure: exit code 255: Connection timed out during banner exchange
11  BRM42220006        ok: underlay0/sled6   static   ok           fd00:1122:3344:106::1/64
underlay0/internaldns0 static ok        fd00:1122:3344:2::2/64
12  BRM42220057        ok: underlay0/sled6   static   ok           fd00:1122:3344:104::1/64
13  BRM42220018        failure: exit code 1
14  BRM42220051        ok: underlay0/sled6   static   ok           fd00:1122:3344:10b::1/64
16  BRM42220014        failure: exit code 255: Connection timed out during banner exchange
17  BRM42220017        ok: underlay0/sled6   static   ok           fd00:1122:3344:109::1/64
21  BRM42220031        ok: underlay0/sled6   static   ok           fd00:1122:3344:102::1/64
23  BRM42220016        ok: underlay0/sled6   static   ok           fd00:1122:3344:10a::1/64
underlay0/internaldns0 static ok        fd00:1122:3344:3::2/64
25  BRM44220010        failure: exit code 255: Connection timed out during banner exchange

Activity

  1. leftwo commented on Feb 12, 2026

    @leftwo
    ContributorAuthor

    I was running health check and it happened to log into 16 and reported this for svcs -xZ:

    svc:/system/name-service-cache:default (name service cache)                                     
      Zone: global                                                                                                             
     State: offline since Wed Feb 11 23:16:01 2026                                                                             
    Reason: Unknown.                                                                                                           
       See: http://illumos.org/msg/SMF-8000-AR                                                                                 
       See: nscd(8)                                                                                                            
       See: /var/svc/log/system-name-service-cache:default.log                                                                 
    Impact: This service is not running.                                                                                       
                                                                                                                               
    svc:/oxide/tfport:default (Sidecar Tfportd Daemon)                                                                         
      Zone: oxz_switch                                                                                                         
     State: offline since Wed Feb 11 23:16:01 2026                                                                             
    Reason: Start method is running.                                                                                           
       See: http://illumos.org/msg/SMF-8000-C4                                                                                 
       See: /zone/oxz_switch/root/var/svc/log/oxide-tfport:default.log                                                         
    Impact: This service is not running.                                                                                       
                                                                                                                               
    svc:/oxide/pumpkind:default (Oxide Pumpkin Detection Daemon)                                                               
      Zone: oxz_switch                                                                                                         
     State: offline since Wed Feb 11 23:16:01 2026                                                                             
    Reason: Start method is running.                                                                                           
       See: http://illumos.org/msg/SMF-8000-C4                                                                                 
       See: /zone/oxz_switch/root/var/svc/log/oxide-pumpkind:default.log                                                       
    Impact: This service is not running.                                                                                       
                                                                                                                               
    svc:/system/name-service-cache:default (name service cache)                                                                
      Zone: oxz_switch                                                                                                         
     State: offline since Wed Feb 11 23:16:01 2026                                                                             
    Reason: Start method is running.                                                                                           
       See: http://illumos.org/msg/SMF-8000-C4                                                                                 
       See: nscd(8)                                                                                                            
       See: /zone/oxz_switch/root/var/svc/log/system-name-service-cache:default.log                                            
    Impact: This service is not running.                                                                                       
                                                                                                                               
    svc:/system/name-service-cache:default (name service cache)                                                                
      Zone: oxz_propolis-server_91f36bd0-e96f-443b-8f2d-4168d08aa7ed                                                           
     State: offline since Wed Feb 11 23:15:37 2026                                                                             
    Reason: Unknown.                                                                                                           
       See: http://illumos.org/msg/SMF-8000-AR                                                                                 
       See: nscd(8)                                                                                                            
       See: /pool/ext/6d3e9cc6-f03b-4055-9785-05711d5e4fdc/crypt/zone/oxz_propolis-server_91f36bd0-e96f-443b-8f2d-4168d08aa7ed/
    root/var/svc/log/system-name-service-cache:default.log                                                                     
    Impact: This service is not running.                                                                                       
                                                                                                                               
    svc:/oxide/crucible/downstairs:downstairs-54f7d8bb-384f-4e26-a523-46c260ad7e66 (Oxide Crucible Downstairs)                 
      Zone: oxz_crucible_3b767edf-a72d-4d80-a0fc-65d6801ed0e0                                                                  
     State: offline since Wed Feb 11 23:16:49 2026                                                                             
    Reason: Unknown.                                                                                                           
       See: http://illumos.org/msg/SMF-8000-AR                                                                                 
       See: /pool/ext/f522118c-5dcd-4116-8044-07f0cceec52e/crypt/zone/oxz_crucible_3b767edf-a72d-4d80-a0fc-65d6801ed0e0/root/va
    r/svc/log/oxide-crucible-downstairs:downstairs-54f7d8bb-384f-4e26-a523-46c260ad7e66.log                                    
    Impact: This service is not running.                                                                                       
                                                                                                                               
    svc:/oxide/crucible/downstairs:downstairs-fbb58c45-a2be-48df-9225-b4a111c76e8e (Oxide Crucible Downstairs)                 
      Zone: oxz_crucible_5cc7c840-8e6b-48c8-ac4b-f4297f8cf61a                                                                  
     State: offline since Wed Feb 11 23:16:02 2026                                                                             
    Reason: Unknown.
       See: http://illumos.org/msg/SMF-8000-AR
       See: /pool/ext/0c4ef358-5533-43db-ad38-a8eff716e53a/crypt/zone/oxz_crucible_5cc7c840-8e6b-48c8-ac4b-f4297f8cf61a/root/va
    r/svc/log/oxide-crucible-downstairs:downstairs-fbb58c45-a2be-48df-9225-b4a111c76e8e.log
    Impact: This service is not running.
    
    svc:/oxide/crucible/downstairs:downstairs-07b92bc6-fac6-4265-b61b-49c6f55ad38c (Oxide Crucible Downstairs)
      Zone: oxz_crucible_bc5124d8-65e8-4879-bfac-64d59003d482
     State: offline since Wed Feb 11 23:16:02 2026
    Reason: Unknown.
       See: http://illumos.org/msg/SMF-8000-AR
       See: /pool/ext/5fac7a1d-e855-46e1-b8c2-dd848ac4fee6/crypt/zone/oxz_crucible_bc5124d8-65e8-4879-bfac-64d59003d482/root/va
    r/svc/log/oxide-crucible-downstairs:downstairs-07b92bc6-fac6-4265-b61b-49c6f55ad38c.log
    Impact: This service is not running.
    
    svc:/system/name-service-cache:default (name service cache)
      Zone: oxz_cockroachdb_e86845b5-eabd-49f5-9a10-6dfef9066209
     State: offline since Wed Feb 11 23:16:01 2026
    Reason: Unknown.
       See: http://illumos.org/msg/SMF-8000-AR
       See: nscd(8)
       See: /pool/ext/416232c1-bc8f-403f-bacb-28403dd8fced/crypt/zone/oxz_cockroachdb_e86845b5-eabd-49f5-9a10-6dfef9066209/root
    /var/svc/log/system-name-service-cache:default.log
    Impact: This service is not running.
    

    I was able to get a connection into sled 16 for a brief time and saw this:

    BRM42220014 # uname -a                                                                                                                                          
    SunOS BRM42220014 5.11 helios-2.0.23760 oxide i386 oxide                                                                                                        
    BRM42220014 # uptime                                                                                                                                            
    23:17:12    up  4:40,  1 user,  load average: 407.16, 1997.53, 1172.73 
    

    So, it was really busy, but had just calmed down

    A check of services at this point showed they had restarted.

  2. leftwo commented on Feb 12, 2026

    @leftwo
    ContributorAuthor

    On 16, the console will accept text and retrun, but gives no prompt or output.

    I entered text below

    root@oxz_switch0:~# pilot sp console 16
    attaching to console; to detach, press: Ctrl-A, Ctrl-X...
    Feb 12 00:37:44.013 INFO creating SP handle on interface gimlet16, component: faux-mgs
                                                                                          Feb 12 00:37:44.014 INFO initial discovery complete, addr: [fe80::aa40:25ff:fe04:342%52]:11111, interface: gimlet16, socket: control-plane-agent, component: faux-mgs
    
    
                                                                                          
    
    
    text                                                                                  
    
  3. leftwo commented on Feb 12, 2026

    @leftwo
    ContributorAuthor

    Sleds 10, 16, and 25 all appear to be in a hung state here. They still show up in pilot host ls, but attempts to connect to them don't receive replies.

    On sled 16's console, I did get some output finally:

    Feb 12 00:40:14 BRM42220014 last message repeated 2439 times                                                                  
    Feb 12 00:40:17 BRM42220014 fch: FCH peripheral: dwu@1, dwu1
    Feb 12 00:40:21 BRM42220014 xde: WARNING: mod remove failed: 16 
    Feb 12 00:40:25 BRM42220014 last message repeated 9 times                                                                     
    Feb 12 00:40:25 BRM42220014 fch: FCH peripheral: dwu@1, dwu1
    Feb 12 00:40:26 BRM42220014 xde: WARNING: mod remove failed: 16 
    Feb 12 00:40:40 BRM42220014 last message repeated 29 times                                                                    
    Feb 12 00:40:40 BRM42220014 fch: FCH peripheral: dwu@1, dwu1
    Feb 12 00:40:41 BRM42220014 xde: WARNING: mod remove failed: 16 
    Feb 12 00:42:03 BRM42220014 last message repeated 165 times
    Feb 12 00:42:03 BRM42220014 fch: FCH peripheral: dwu@1, dwu1
    Feb 12 00:42:04 BRM42220014 xde: WARNING: mod remove failed: 16 
    Feb 12 00:42:04 BRM42220014 last message repeated 1 time
    Feb 12 00:42:04 BRM42220014 fch: FCH peripheral: dwu@1, dwu1
    Feb 12 00:42:05 BRM42220014 xde: WARNING: mod remove failed: 16 
    Feb 12 00:43:23 BRM42220014 last message repeated 157 times
    Feb 12 00:43:23 BRM42220014 fch: FCH peripheral: dwu@1, dwu1
    Feb 12 00:43:24 BRM42220014 xde: WARNING: mod remove failed: 16 
    
  4. changed the title [-]Dogfood sleds very busy during update[/-] [+]snapshots of read only disks take all available memory[/+] on Feb 12, 2026
  5. added this to the 18 milestone on Feb 12, 2026
  6. jmpesp commented on Feb 12, 2026

    @jmpesp
    Contributor

    For a downstairs that is read-only, there is a short circuit for a flush command that is requesting a snapshot:

        /*
         * Send a flush to all extents. The provided flush number is
         * what an extent should use if a flush is required.
         */
        #[instrument]
        pub fn region_flush(
            &mut self,
            flush_number: u64,
            gen_number: u64,
            snapshot_details: &Option<SnapshotDetails>,
            job_id: JobId,
            extent_limit: Option<ExtentId>,
        ) -> Result<(), CrucibleError> {
            // It should be ok to Flush a read-only region, but not take a snapshot.
            // Most likely this read-only region *is* a snapshot, so that's
            // redundant :)
            if self.read_only && snapshot_details.is_some() {
                crucible_bail!(ModifyingReadOnlyRegion);
            }

    This returns an error right away. If there is a flush that is not requesting a snapshot, this is mostly a no-op but is important for Crucible (for clearing out old jobs and making sure that job dependencies are fulfilled).

    The problem occurs due to the downstair's retry behaviour: for correctness, the downstairs will retry every job (except a repair operation) until the job succeeds, and will send a notification to the upstairs every time it tries that an error has occurred. The combination of this retry loop and short circuiting plus enqueuing a notification to the upstairs is what is causing the unbounded memory growth.

    There are at minimum two fixes required here:

    1. do not allow snapshots of read-only disks - at a higher level this never made sense
    2. in the downstairs retry behaviour, certain errors should be considered transient, and others are permanent. ModifyingReadOnlyRegion is almost certainly a condition that will never change and should not be retried. the downstairs will have to notify the upstairs that this condition is true, and the upstairs will have to consider this job failed right away.
  7. linked a pull request that will close this issueDo not allow snapshots of read-only disks #9857on Feb 12, 2026
  8. jmpesp commented on Feb 12, 2026

    @jmpesp
    Contributor

    In order to un-stick dogfood, we first found the snapshot-create saga that was requesting a snapshot for a read-only disk, and saw that it was stuck in the call_pantry_snapshot_for_disk step. This step sends the snapshot request to a pantry that is running a volume connected to the three read-only downstairs, which ultimately sent those downstairs a flush with a snapshot request.

    Once we identified that this was the issue, I manually sent a detach call to the Pantry for that volume id (obtained from the saga log), and this caused the saga to unwind. The three downstairs processes had been pstoped this entire time, and when prun again started to consume memory at the same rate (due to the short circuit). We svcadm restart the appropriate service for each downstairs and saw that they no longer were consuming memory at the same alarming rate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions