Pyonephrosis is an accumulation of pus within the cavities of the kidney, especially within the renal pelvis. This results in a loss of parenchymal mass.