That's certainly an interesting question. But because we can't answer it fully, doesn't mean the logic we used to get to that point is faulty.
God is always displeased by vanity, sin, corruption, disobediance, etc.
But like viruses, He created them, and He uses them to further His glory.
An amazing plan, don't you think ?
I think that it is unlikely and unscriptural that God created anything that, in and of itself, ... displeases Him.
Did He not pronounce the entire creation good ?
Did not God say that He neither sins nor tempts man to sin ?
I believe that it is much more likely that God created and gifted man with free-will, ... which pleases Him.
The purposed effect of so gifting man would be to enable man to freely choose Him ... which pleases Him.
However, the side-effects of this gifting are those things which displease Him ... disobedience, vanity, pride, sin, corruption, etc.
Furthering His glory is not God's only purpose.
He also chooses to love ... us ... and desires that we love Him ... in return.
That's what's really amazing.
But God is God.
...unlikely and unscriptural that God created anything that...displeases Him.
Really? God DID create viruses, however, and earthquakes and Judas and cancer and democrats and lice and the French. So God did create things that are, in and of themselves, not "good."
Realize that you say God is "pleased" by man's free will, yet that same free will, according to you, is what enables man to sin in the first place. Do you see the illogic here?
Did He not pronounce the entire creation good?
God said it was all good BEFORE the Fall, after which time sin entered the world.
But Adam's Fall did not surprise God, anymore than our sin surprises God. It was and is all part of God's plan for His creation. It can be nothing else, if He is God. Thus, whatever God does is "good," because it accomplishes His holy purpose.
Everything is created to reflect God's glory -- the love we have for our children, the love God has for us, and most especially, the love we have for Him.
Furthering His glory is not God's only purpose.
It is the first commandment, more important than all others.
"The heavens declare the glory of God; and the firmament showeth his handiwork." -- Psalm 19:1.
It is the reason for our being.