Did morocco declare on Germany? If so, you would not be called into the war because technically Morocco is the aggressor so you aren't called into war against Germany.
The situation with city states and defensive pacts is strange but I think its working as intended. You should be able to make peace with all the CS
I'm 95% sure it was Germany who declared the war... Or at least that was what the notification said.
In my previous game with 7/3 version I had a similar situation but there I had a defensive pact with practically everyone so that might have been the problem. Now I only had the pact with Morocco though.