2024-08-29 17:12:12,323 - INFO - Domain Default found not creating
2024-08-29 17:12:12,739 - INFO - Project ctest-TestBasicPolicy-15430872 not found, creating it
2024-08-29 17:12:13,599 - INFO - Created Project:ctest-TestBasicPolicy-15430872, ID : 86413988-d093-4d1f-bb85-437c82ee50c3
2024-08-29 17:12:16,195 - INFO - ================================================================================
2024-08-29 17:12:16,195 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 17:12:16,196 - 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
2024-08-29 17:12:16,530 - DEBUG - Nothing to compare xmpp stats {'10.0.0.76': {'10.20.0.6': '0'}} with
2024-08-29 17:12:16,530 - INFO - Initial checks done. Running the testcase now
2024-08-29 17:12:16,531 - INFO -
2024-08-29 17:12:17,406 - DEBUG - Response for create_network : {'network': {'id': 'f181d9fb-ef8d-41e9-a478-35774f933d05', 'name': 'ctest-vn-15822999', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-15822999'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:12:17,673 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b396c99f-f1c5-41cb-b23c-0e640e6c47e4', 'name': '', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'network_id': 'f181d9fb-ef8d-41e9-a478-35774f933d05', 'ip_version': 4, 'cidr': '9.47.64.0/26', 'allocation_pools': [{'start': '9.47.64.2', 'end': '9.47.64.62'}], 'gateway_ip': '9.47.64.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.47.64.2', 'tags': [], 'project_id': '86413988d0934d1fbb85437c82ee50c3'}}
2024-08-29 17:12:17,697 - INFO - Created VN ctest-vn-15822999
2024-08-29 17:12:17,756 - DEBUG - VN ctest-vn-15822999 UUID is f181d9fb-ef8d-41e9-a478-35774f933d05
2024-08-29 17:12:18,127 - DEBUG - Response for create_network : {'network': {'id': 'ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5', 'name': 'ctest-vn-33478557', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-33478557'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:12:18,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '65be00ea-6948-49e8-9e93-d3acd63c999d', 'name': '', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'network_id': 'ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5', 'ip_version': 4, 'cidr': '114.164.25.64/26', 'allocation_pools': [{'start': '114.164.25.66', 'end': '114.164.25.126'}], 'gateway_ip': '114.164.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.164.25.66', 'tags': [], 'project_id': '86413988d0934d1fbb85437c82ee50c3'}}
2024-08-29 17:12:18,429 - INFO - Created VN ctest-vn-33478557
2024-08-29 17:12:18,497 - DEBUG - VN ctest-vn-33478557 UUID is ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5
2024-08-29 17:12:18,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999, 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-15430872:ctest-vn-33478557, 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]
2024-08-29 17:12:19,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f181d9fb-ef8d-41e9-a478-35774f933d05', 'name': 'ctest-vn-15822999', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b396c99f-f1c5-41cb-b23c-0e640e6c47e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-15822999'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867']], 'subnet_ipam': [{'subnet_cidr': '9.47.64.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:12:19,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5', 'name': 'ctest-vn-33478557', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65be00ea-6948-49e8-9e93-d3acd63c999d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-33478557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867']], 'subnet_ipam': [{'subnet_cidr': '114.164.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 17:12:19,621 - DEBUG - Requesting: http://10.0.0.76:8082/domains
2024-08-29 17:12:19,975 - DEBUG - Requesting: http://10.0.0.76:8082/domains
2024-08-29 17:12:20,036 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de
2024-08-29 17:12:20,073 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3
2024-08-29 17:12:20,198 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05
2024-08-29 17:12:20,224 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05
2024-08-29 17:12:20,243 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4
2024-08-29 17:12:20,261 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4
2024-08-29 17:12:20,279 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/99040906-ad0a-41ab-ab5a-7429279d81e6
2024-08-29 17:12:20,297 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 17:12:20,297 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05
2024-08-29 17:12:20,316 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4
2024-08-29 17:12:20,352 - INFO - Verified VN network id 7 for VN f181d9fb-ef8d-41e9-a478-35774f933d05
2024-08-29 17:12:20,352 - INFO - Verifications in API Server for VN ctest-vn-15822999 passed
2024-08-29 17:12:20,353 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05
2024-08-29 17:12:20,373 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4
2024-08-29 17:12:20,386 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4
2024-08-29 17:12:20,399 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/99040906-ad0a-41ab-ab5a-7429279d81e6
2024-08-29 17:12:20,428 - DEBUG - Control-node 10.0.0.76 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15430872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17402430111215337961', 'uuid-lslong': '11851281205977890053'}, 'enable': 'true', 'created': '2024-08-29T17:12:17', 'last-modified': '2024-08-29T17:12:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.397540'}
2024-08-29 17:12:20,442 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 17:12:20,442 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15822999 passed
2024-08-29 17:12:20,442 - DEBUG - ====Verifying policy data for ctest-vn-15822999 in API_Server ======
2024-08-29 17:12:20,442 - DEBUG - Requesting: http://10.0.0.76:8082/domains
2024-08-29 17:12:20,453 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de
2024-08-29 17:12:20,479 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3
2024-08-29 17:12:20,592 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05
2024-08-29 17:12:20,610 - DEBUG - ==>Verifying data for policy with id: ef765820-9394-4ba0-924b-8eecca893087, fqn: ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867']
2024-08-29 17:12:20,610 - INFO - VN ctest-vn-15822999 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 17:12:20,610 - DEBUG - Verifying the vn in opserver
2024-08-29 17:12:20,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999 virtual network link through opserver 10.0.0.76
2024-08-29 17:12:20,610 - DEBUG - Requesting: http://10.0.0.76:8081/analytics/uves/virtual-networks
2024-08-29 17:12:20,962 - DEBUG - Requesting: http://10.0.0.76:8081/analytics/uves/virtual-networks
2024-08-29 17:12:21,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999', 'href': 'http://10.0.0.76:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999?flat'}
2024-08-29 17:12:21,053 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999 is found in opserver
2024-08-29 17:12:21,087 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 17:12:21,101 - DEBUG - VRF ids for VN ctest-vn-15822999: {}
2024-08-29 17:12:21,101 - DEBUG - Requesting: http://10.0.0.76:8082/domains
2024-08-29 17:12:21,115 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de
2024-08-29 17:12:21,147 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3
2024-08-29 17:12:21,263 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5
2024-08-29 17:12:21,289 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5
2024-08-29 17:12:21,306 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557
2024-08-29 17:12:21,324 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557
2024-08-29 17:12:21,338 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/d98b744b-3465-4719-aece-8f22941c8f05
2024-08-29 17:12:21,349 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 17:12:21,349 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5
2024-08-29 17:12:21,366 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557
2024-08-29 17:12:21,406 - INFO - Verified VN network id 8 for VN ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5
2024-08-29 17:12:21,406 - INFO - Verifications in API Server for VN ctest-vn-33478557 passed
2024-08-29 17:12:21,407 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5
2024-08-29 17:12:21,432 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557
2024-08-29 17:12:21,446 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557
2024-08-29 17:12:21,459 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/d98b744b-3465-4719-aece-8f22941c8f05
2024-08-29 17:12:21,484 - DEBUG - Control-node 10.0.0.76 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15430872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12485639525896765753', 'uuid-lslong': '11261620126813890261'}, 'enable': 'true', 'created': '2024-08-29T17:12:18', 'last-modified': '2024-08-29T17:12:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.081895'}
2024-08-29 17:12:21,493 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 17:12:21,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33478557 passed
2024-08-29 17:12:21,493 - DEBUG - ====Verifying policy data for ctest-vn-33478557 in API_Server ======
2024-08-29 17:12:21,493 - DEBUG - Requesting: http://10.0.0.76:8082/domains
2024-08-29 17:12:21,501 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de
2024-08-29 17:12:21,529 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3
2024-08-29 17:12:21,620 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5
2024-08-29 17:12:21,633 - DEBUG - ==>Verifying data for policy with id: ef765820-9394-4ba0-924b-8eecca893087, fqn: ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867']
2024-08-29 17:12:21,633 - INFO - VN ctest-vn-33478557 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 17:12:21,633 - DEBUG - Verifying the vn in opserver
2024-08-29 17:12:21,633 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557 virtual network link through opserver 10.0.0.76
2024-08-29 17:12:21,633 - DEBUG - Requesting: http://10.0.0.76:8081/analytics/uves/virtual-networks
2024-08-29 17:12:21,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557', 'href': 'http://10.0.0.76:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557?flat'}
2024-08-29 17:12:21,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557 is found in opserver
2024-08-29 17:12:21,671 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 17:12:21,682 - DEBUG - VRF ids for VN ctest-vn-33478557: {}
2024-08-29 17:12:21,788 - DEBUG - Services list from nova: [