2025-01-07 09:33:37,973 - INFO - Domain Default found not creating
2025-01-07 09:33:38,138 - INFO - Project ctest-TestBasicPolicy-54024663 not found, creating it
2025-01-07 09:33:38,680 - INFO - Created Project:ctest-TestBasicPolicy-54024663, ID : 0cfa779c-2358-4df0-a00b-457b92f2f459
2025-01-07 09:33:40,362 - INFO - ================================================================================
2025-01-07 09:33:40,362 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 09:33:40,362 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-01-07 09:33:40,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.7': '0'}} with
2025-01-07 09:33:40,626 - INFO - Initial checks done. Running the testcase now
2025-01-07 09:33:40,626 - INFO -
2025-01-07 09:33:41,214 - DEBUG - Response for create_network : {'network': {'id': 'ee316c83-569e-4fc1-b2e8-09679ebb1925', 'name': 'ctest-vn-52723370', 'tenant_id': '0cfa779c23584df0a00b457b92f2f459', 'project_id': '0cfa779c23584df0a00b457b92f2f459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-vn-52723370'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:33:41,374 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5b536b0-def2-496a-9555-7868bbbf2a2d', 'name': '', 'tenant_id': '0cfa779c23584df0a00b457b92f2f459', 'network_id': 'ee316c83-569e-4fc1-b2e8-09679ebb1925', 'ip_version': 4, 'cidr': '81.15.220.64/26', 'allocation_pools': [{'start': '81.15.220.66', 'end': '81.15.220.126'}], 'gateway_ip': '81.15.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.15.220.66', 'tags': [], 'project_id': '0cfa779c23584df0a00b457b92f2f459'}}
2025-01-07 09:33:41,395 - INFO - Created VN ctest-vn-52723370
2025-01-07 09:33:41,449 - DEBUG - VN ctest-vn-52723370 UUID is ee316c83-569e-4fc1-b2e8-09679ebb1925
2025-01-07 09:33:41,789 - DEBUG - Response for create_network : {'network': {'id': 'f87daa10-d94e-449a-9181-32aee29c43be', 'name': 'ctest-vn-89334435', 'tenant_id': '0cfa779c23584df0a00b457b92f2f459', 'project_id': '0cfa779c23584df0a00b457b92f2f459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-vn-89334435'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:33:42,012 - DEBUG - Response for create_subnet : {'subnet': {'id': '8da008fa-4f32-456a-9de2-2e5d93e5a1db', 'name': '', 'tenant_id': '0cfa779c23584df0a00b457b92f2f459', 'network_id': 'f87daa10-d94e-449a-9181-32aee29c43be', 'ip_version': 4, 'cidr': '64.144.76.64/26', 'allocation_pools': [{'start': '64.144.76.66', 'end': '64.144.76.126'}], 'gateway_ip': '64.144.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.144.76.66', 'tags': [], 'project_id': '0cfa779c23584df0a00b457b92f2f459'}}
2025-01-07 09:33:42,032 - INFO - Created VN ctest-vn-89334435
2025-01-07 09:33:42,085 - DEBUG - VN ctest-vn-89334435 UUID is f87daa10-d94e-449a-9181-32aee29c43be
2025-01-07 09:33:42,208 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-52723370, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-89334435, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-01-07 09:33:42,548 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee316c83-569e-4fc1-b2e8-09679ebb1925', 'name': 'ctest-vn-52723370', 'tenant_id': '0cfa779c23584df0a00b457b92f2f459', 'project_id': '0cfa779c23584df0a00b457b92f2f459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5b536b0-def2-496a-9555-7868bbbf2a2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-vn-52723370'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-policy-allow-all-66184993']], 'subnet_ipam': [{'subnet_cidr': '81.15.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:33:42,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f87daa10-d94e-449a-9181-32aee29c43be', 'name': 'ctest-vn-89334435', 'tenant_id': '0cfa779c23584df0a00b457b92f2f459', 'project_id': '0cfa779c23584df0a00b457b92f2f459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8da008fa-4f32-456a-9de2-2e5d93e5a1db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-vn-89334435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-policy-allow-all-66184993']], 'subnet_ipam': [{'subnet_cidr': '64.144.76.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:33:43,001 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 09:33:43,316 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 09:33:43,348 - DEBUG - Requesting: http://10.0.0.31:8082/domain/af782208-78bf-4dc8-a6e7-5ebed5034e72
2025-01-07 09:33:43,363 - DEBUG - Requesting: http://10.0.0.31:8082/project/0cfa779c-2358-4df0-a00b-457b92f2f459
2025-01-07 09:33:43,440 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ee316c83-569e-4fc1-b2e8-09679ebb1925
2025-01-07 09:33:43,454 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ee316c83-569e-4fc1-b2e8-09679ebb1925
2025-01-07 09:33:43,467 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f8cd66c6-5306-4616-bfac-eaef2275c7c3
2025-01-07 09:33:43,478 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f8cd66c6-5306-4616-bfac-eaef2275c7c3
2025-01-07 09:33:43,486 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ded277d5-368b-4139-9ed9-04e8ae23d437
2025-01-07 09:33:43,493 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 09:33:43,493 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ee316c83-569e-4fc1-b2e8-09679ebb1925
2025-01-07 09:33:43,503 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f8cd66c6-5306-4616-bfac-eaef2275c7c3
2025-01-07 09:33:43,519 - INFO - Verified VN network id 8 for VN ee316c83-569e-4fc1-b2e8-09679ebb1925
2025-01-07 09:33:43,519 - INFO - Verifications in API Server for VN ctest-vn-52723370 passed
2025-01-07 09:33:43,519 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ee316c83-569e-4fc1-b2e8-09679ebb1925
2025-01-07 09:33:43,531 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f8cd66c6-5306-4616-bfac-eaef2275c7c3
2025-01-07 09:33:43,539 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f8cd66c6-5306-4616-bfac-eaef2275c7c3
2025-01-07 09:33:43,547 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ded277d5-368b-4139-9ed9-04e8ae23d437
2025-01-07 09:33:43,560 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-52723370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54024663', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17163618966235402177', 'uuid-lslong': '12891564273997388069'}, 'enable': 'true', 'created': '2025-01-07T09:33:41', 'last-modified': '2025-01-07T09:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056390'}
2025-01-07 09:33:43,567 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 09:33:43,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52723370 passed
2025-01-07 09:33:43,567 - DEBUG - ====Verifying policy data for ctest-vn-52723370 in API_Server ======
2025-01-07 09:33:43,568 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 09:33:43,575 - DEBUG - Requesting: http://10.0.0.31:8082/domain/af782208-78bf-4dc8-a6e7-5ebed5034e72
2025-01-07 09:33:43,589 - DEBUG - Requesting: http://10.0.0.31:8082/project/0cfa779c-2358-4df0-a00b-457b92f2f459
2025-01-07 09:33:43,669 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ee316c83-569e-4fc1-b2e8-09679ebb1925
2025-01-07 09:33:43,680 - DEBUG - ==>Verifying data for policy with id: 18615054-e80f-4a4a-aa95-844b843bda2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-policy-allow-all-66184993']
2025-01-07 09:33:43,680 - INFO - VN ctest-vn-52723370 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 09:33:43,680 - DEBUG - Verifying the vn in opserver
2025-01-07 09:33:43,680 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-52723370 virtual network link through opserver 10.0.0.31
2025-01-07 09:33:43,680 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-07 09:33:43,974 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-07 09:33:44,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-52723370', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-52723370?flat'}
2025-01-07 09:33:44,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-52723370 is found in opserver
2025-01-07 09:33:44,049 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 09:33:44,057 - DEBUG - VRF ids for VN ctest-vn-52723370: {}
2025-01-07 09:33:44,057 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 09:33:44,064 - DEBUG - Requesting: http://10.0.0.31:8082/domain/af782208-78bf-4dc8-a6e7-5ebed5034e72
2025-01-07 09:33:44,076 - DEBUG - Requesting: http://10.0.0.31:8082/project/0cfa779c-2358-4df0-a00b-457b92f2f459
2025-01-07 09:33:44,149 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f87daa10-d94e-449a-9181-32aee29c43be
2025-01-07 09:33:44,164 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f87daa10-d94e-449a-9181-32aee29c43be
2025-01-07 09:33:44,175 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f3b8f446-de44-42fa-993c-faa46e181a63
2025-01-07 09:33:44,184 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f3b8f446-de44-42fa-993c-faa46e181a63
2025-01-07 09:33:44,192 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/89988fbb-140a-45a7-bf31-f28b4c2a3cd9
2025-01-07 09:33:44,199 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 09:33:44,199 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f87daa10-d94e-449a-9181-32aee29c43be
2025-01-07 09:33:44,209 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f3b8f446-de44-42fa-993c-faa46e181a63
2025-01-07 09:33:44,226 - INFO - Verified VN network id 9 for VN f87daa10-d94e-449a-9181-32aee29c43be
2025-01-07 09:33:44,226 - INFO - Verifications in API Server for VN ctest-vn-89334435 passed
2025-01-07 09:33:44,227 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f87daa10-d94e-449a-9181-32aee29c43be
2025-01-07 09:33:44,239 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f3b8f446-de44-42fa-993c-faa46e181a63
2025-01-07 09:33:44,248 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/f3b8f446-de44-42fa-993c-faa46e181a63
2025-01-07 09:33:44,257 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/89988fbb-140a-45a7-bf31-f28b4c2a3cd9
2025-01-07 09:33:44,275 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-89334435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54024663', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17905654682836944026', 'uuid-lslong': '10484717134202815422'}, 'enable': 'true', 'created': '2025-01-07T09:33:41', 'last-modified': '2025-01-07T09:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.505768'}
2025-01-07 09:33:44,283 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 09:33:44,283 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89334435 passed
2025-01-07 09:33:44,284 - DEBUG - ====Verifying policy data for ctest-vn-89334435 in API_Server ======
2025-01-07 09:33:44,284 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 09:33:44,290 - DEBUG - Requesting: http://10.0.0.31:8082/domain/af782208-78bf-4dc8-a6e7-5ebed5034e72
2025-01-07 09:33:44,303 - DEBUG - Requesting: http://10.0.0.31:8082/project/0cfa779c-2358-4df0-a00b-457b92f2f459
2025-01-07 09:33:44,381 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f87daa10-d94e-449a-9181-32aee29c43be
2025-01-07 09:33:44,393 - DEBUG - ==>Verifying data for policy with id: 18615054-e80f-4a4a-aa95-844b843bda2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54024663', 'ctest-policy-allow-all-66184993']
2025-01-07 09:33:44,393 - INFO - VN ctest-vn-89334435 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 09:33:44,393 - DEBUG - Verifying the vn in opserver
2025-01-07 09:33:44,393 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-89334435 virtual network link through opserver 10.0.0.31
2025-01-07 09:33:44,393 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-07 09:33:44,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-89334435', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-89334435?flat'}
2025-01-07 09:33:44,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54024663:ctest-vn-89334435 is found in opserver
2025-01-07 09:33:44,416 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 09:33:44,422 - DEBUG - VRF ids for VN ctest-vn-89334435: {}
2025-01-07 09:33:44,488 - DEBUG - Services list from nova: [