ubicloud/model
Jeremy Evans c360c357d1 Use a timeout by default in Sshable#cmd
This changes the Channel#wait call to a loop that checks
that the timeout has not been exceeded.  If the timeout
has been exceeded, an SshTimeout error (subclass of SshError)
is raised.

This should catch any shell commands that take too long to
execute, as well as any hangs in the SSH connections, which
should prevent most current causes of apoptosis.

I'm including the timeout in the Clog emit, since it may
be useful.

This switches the newly added `sudo timeout 10s` in VM nexus
command with a `timeout: 10` argument.  We can consider
expanding the use of explicit timeouts to other commands,
because the default timeout is fairly long (2-10 seconds less
than the apoptosis timeout).

This removes the SSH Channel#wait call inside the Channel#exec
block.  Session#open_channel returns the same channel it yields,
and Channel#exec yields the receiver, so previously, we were waiting
twice on the same channel.  This removes the duplicated wait inside
the block, as the wait outside the block will always be called.
2025-10-02 08:14:56 -07:00
..
ai Stop using serializer for inference endpoint route 2025-08-26 02:08:44 +09:00
dns_zone Convert SemaphoreMethods to Sequel plugin 2025-07-09 00:42:44 +09:00
github Do not try to abort multipart uploads if the bucket is already deleted 2025-09-17 21:48:01 +03:00
kubernetes Give Kubernetes Nodepool its own path 2025-09-30 13:07:32 +03:00
minio Remove MinioServer project association 2025-09-27 02:11:04 +09:00
postgres Add VictoriaMetrics.client_for_project and PostgresServer.victoria_metrics_client 2025-09-27 02:10:55 +09:00
access_control_entry.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
account.rb Add account model to admin panel 2025-09-27 21:50:20 +03:00
account_identity.rb Add identities association to the account 2024-12-30 12:22:26 +03:00
action_tag.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
action_type.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
address.rb Add admin_label to more classes 2025-09-27 21:50:20 +03:00
api_key.rb Add ApiKey#path 2025-08-26 02:08:44 +09:00
archived_record.rb Create ArchivedRecord model 2024-12-14 11:48:31 +01:00
assigned_host_address.rb Add admin_label to more classes 2025-09-27 21:50:20 +03:00
assigned_vm_address.rb Add admin_label to more classes 2025-09-27 21:50:20 +03:00
aws_instance.rb Add migration for EC2 DNS name 2025-08-05 16:26:18 +02:00
billing_info.rb Allow customers to add additional note to invoice 2025-09-05 13:46:45 +03:00
billing_record.rb Add admin_label to more classes 2025-09-27 21:50:20 +03:00
boot_image.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
cert.rb Rename CertsLoadBalancers to LoadBalancerCert 2025-08-08 00:31:44 +09:00
connected_subnet.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
discount_code.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
firewall.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
firewall_rule.rb Add Firewall#display_port_range 2025-08-08 01:52:14 +09:00
github_installation.rb Fix free premium runner upgrade logic 2025-07-03 18:14:55 +03:00
github_runner.rb Round VM and runner provisioning times in logs 2025-09-17 21:45:01 +03:00
globally_blocked_dnsname.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
host_provider.rb Move aws subnet to nic 2025-09-19 16:19:50 +02:00
invoice.rb Add Pay Now button to unpaid invoices 2025-10-01 18:52:48 +03:00
ipsec_tunnel.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
load_balancer.rb Start metadata-endpoint even if the Cert is not ready 2025-10-02 16:35:27 +02:00
load_balancer_cert.rb Rename CertsLoadBalancers to LoadBalancerCert 2025-08-08 00:31:44 +09:00
load_balancer_port.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
load_balancer_vm.rb Rename LoadBalancersVms to LoadBalancerVm 2025-08-08 00:31:44 +09:00
load_balancer_vm_port.rb Set last pulse of monitorable resources 2025-09-26 09:04:02 +02:00
location.rb Use arch while selecting the target AMI for Postgres 2025-07-07 10:52:33 +03:00
location_credential.rb Setup individual instance IAMs to be used by cloudwatch agent 2025-07-28 09:44:57 +03:00
locked_domain.rb Make locked_domain.domain column citext instead of text 2025-07-17 00:44:40 +09:00
nic.rb Stop using serializers in the private subnet show template 2025-08-08 01:52:14 +09:00
nic_aws_resource.rb Move aws subnet info to nic - migration 2025-09-19 16:19:50 +02:00
object_metatag.rb Avoid explicitly casting string arrays used for = ANY/!= ALL 2025-04-30 06:05:53 +09:00
object_tag.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
oidc_provider.rb Replace unnecessary new_with_id calls with new 2025-08-06 01:55:51 +09:00
page.rb Add Page.group_by_vm_host dataset method 2025-09-03 02:39:04 +09:00
payment_method.rb Add PaymentMethod#path 2025-08-26 02:08:44 +09:00
pci_device.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
pg_aws_ami.rb Migration to add arch column to pg_aws_ami 2025-07-07 10:52:33 +03:00
private_subnet.rb Move aws subnet to nic 2025-09-19 16:19:50 +02:00
private_subnet_aws_resource.rb Cleanup AWS subnet info from private_subnet_aws_resource - migration 2025-09-19 16:19:50 +02:00
private_subnet_firewall.rb Rename FirewallsPrivateSubnets to PrivateSubnetFirewall 2025-08-08 00:31:44 +09:00
project.rb Calculate effective vCPUs quota for Kubernetes clusters of projects 2025-09-26 13:43:45 +03:00
project_discount_code.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
project_invitation.rb Move unrestrict primary key calls inside the related model 2025-06-04 04:55:45 +09:00
project_quota.rb Move unrestrict primary key calls inside the related model 2025-06-04 04:55:45 +09:00
semaphore.rb Make Semaphore.incr use a single query 2025-06-04 05:26:37 +09:00
spdk_installation.rb Use ResourceMethods plugin in SpdkInstallation 2025-06-04 04:55:45 +09:00
sshable.rb Use a timeout by default in Sshable#cmd 2025-10-02 08:14:56 -07:00
storage_device.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
storage_key_encryption_key.rb Add ResourceMethods plugin encrypted_columns argument 2025-07-09 05:45:18 +09:00
strand.rb Use FOR NO KEY UPDATE instead of FOR UPDATE 2025-07-04 09:26:06 +09:00
subject_tag.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
usage_alert.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
vhost_block_backend.rb Clover: Ubiblk setup 2025-06-11 11:24:17 -07:00
victoria_metrics_resource.rb Add VictoriaMetrics.client_for_project and PostgresServer.victoria_metrics_client 2025-09-27 02:10:55 +09:00
victoria_metrics_server.rb Do not include server cert when providing CA data to VictoriaMetrics::Client 2025-09-27 02:10:40 +09:00
vm.rb Support VMs without IPv6 2025-09-04 14:15:35 +02:00
vm_host.rb Add VmHost table to admin panel 2025-09-27 21:50:20 +03:00
vm_host_cpu.rb Move unrestrict primary key calls inside the related model 2025-06-04 04:55:45 +09:00
vm_host_slice.rb Convert SemaphoreMethods to Sequel plugin 2025-07-09 00:42:44 +09:00
vm_pool.rb Convert SemaphoreMethods to Sequel plugin 2025-07-09 00:42:44 +09:00
vm_storage_volume.rb Use vring_workers as num_queues of Ubiblk backed volumes. 2025-09-09 11:58:45 -07:00