A gas storage water heater has three things to get right: ignition, combustion and exhaust. When one of them fails, the symptom is usually "no hot water" or "it keeps going out", and the useful work is deciding which of the three is responsible before any part is replaced.
Ignition: why the burner will not stay lit
The pilot or electronic ignition lights the burner, and a safety device proves the flame is there. On a standing-pilot unit, that device is a thermocouple generating a small voltage from the pilot flame; when it ages or the pilot is weak, the gas valve shuts off and the burner goes out. On an electronic unit, a hot-surface igniter or spark igniter lights the burner and a flame sensor confirms it.
Common causes, in rough order of frequency: a thermocouple or flame sensor that no longer holds, a dirty pilot orifice or burner air path, a gas valve that will not open, a supply problem at the shut-off valve, and a safety switch that has already done its job. Replacing the thermocouple without checking whether the pilot flame reaches it is the classic wasted visit.
Combustion: the flame and the burner
A gas burner should produce a steady blue flame. A yellow, lazy flame with soot is a sign of incomplete combustion, and the causes range from a dirty burner to insufficient primary air to a blocked flue. On a flammable-vapour-resistant unit, a safety shutoff may have tripped because of vapours from paint, solvents or lawn equipment stored nearby, and the unit will not relight until the cause is removed and the safety reset properly.
Any exhaust smell inside the space, soot at the base or a flame that lifts off the burner is a reason to stop using the unit until it has been checked.
Venting: the part that is not optional
A gas water heater's flue carries combustion gases out of the building. The flue needs correct pitch, tight joints, proper clearance to combustibles, and a termination that works with the building's pressure. A backdrafting flue spills exhaust into the garage or closet, which is a health and safety problem rather than an efficiency complaint, and no amount of burner adjustment fixes it.
Irvine's housing stock includes a lot of units in garages and closets where the flue run is short and the clearance is tight. Those are the installations where venting problems show up as intermittent shutdowns rather than an obvious smell.
What a repair visit covers
The visit starts with the unit's behaviour: does the burner attempt to light, does it light and go out, does it stay lit but heat poorly. From there the checks follow the gas train, the ignition circuit, the burner and air path, the flue and the controls. A gas valve, thermocouple, igniter, flame sensor, burner or flue correction is then replaced or repaired on evidence rather than on a guess.
Gas work also has a boundary. Adjusting a gas valve or working on the gas supply line is licensed plumbing and gas work, and a repair that involves the gas piping, the regulator or the meter is not a homeowner task.
What it costs, and what changes the number
The parts are modest: a thermocouple or igniter is inexpensive, a gas valve less so. What moves the cost is diagnosis time and access, and whether the fault turns out to be venting or a control that needs the unit partly disassembled. A garage installation with clearance is quicker than a closet where the flue has to come apart.
On an old tank, a gas repair can also be the moment the replacement question arrives. A failed gas valve on a fourteen-year-old unit with a weeping fitting is money spent on a tank that is nearly finished; the same failure on a six-year-old unit is a straightforward fix.
Safety first, always
If you smell gas, leave and call the utility. If the flame is yellow and sooty, stop using the unit. If the pilot lights but the burner will not, do not keep trying to light it while unburned gas can accumulate. Those three rules cover the situations where a repair call is the second call, not the first.