There are at least two countries in the world that have ceased to issue travel documents to their citizens abroad. In September last year, Belarusian diplomatic missions stopped issuing passports following a president's decree. The US and the EU condemned the move, while the opposition in exile committed to produce alternative passports.
This month, the diplomatic missions of Ukraine temporarily suspended consular services to military-age men, at the instruction of the Foreign Ministry. A decree by the Cabinet of Ministers further banned the delivery of passports abroad for an unspecified period, suggesting that Ukrainian men should return home and fulfill their duty. Poland and Germany have since reaffirmed their commitment to providing temporary protection and refugee status to Ukrainians, irrespective of their passport validity.
In both instances, the embassies have ceased to provide services for political reasons. In one instance, the embassies have excluded a specific group by gender and age. Both countries' nationals are at risk of not having any valid identification documents required to travel, work, and study abroad, while they face danger to their life and freedom at home.
Both countries are signatories to international agreements and treaties, including the 1961 Vienna Convention.
Did these countries violate any international law on the conduct and operation of diplomatic missions abroad?
What legal consequences, such as sanctions, may these countries face following these violations, if any?