Yes a wood wasp, they don't have sting . The ovipositor is for laying eggs in to the rotted/soft wood. Fearsome as they may look they aren't dangerous.
I always feel sorry for them because people tend to think they're big and scary, and some kind of 'dangerous' hornet, catching or killing them, when they're actually completely harmless.