2024-10-18 21:41:46,261 - INFO - Domain Default found not creating
2024-10-18 21:41:46,524 - INFO - Project ctest-TestBasicPolicy-89343958 not found, creating it
2024-10-18 21:41:47,008 - INFO - Created Project:ctest-TestBasicPolicy-89343958, ID : d43d73e6-a89c-4b08-ba4e-a759d904fe21
2024-10-18 21:41:48,490 - INFO - ================================================================================
2024-10-18 21:41:48,490 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-18 21:41:48,490 - 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-10-18 21:41:48,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.29': '0'}} with
2024-10-18 21:41:48,751 - INFO - Initial checks done. Running the testcase now
2024-10-18 21:41:48,751 - INFO -
2024-10-18 21:41:49,307 - DEBUG - Response for create_network : {'network': {'id': '03b8b6d9-d19d-4377-8a6f-5208aef9eca7', 'name': 'ctest-vn-08067996', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-08067996'], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:41:49,528 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fed7966f-7c88-4b7f-93fb-7ff215bc6439', 'name': '', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'network_id': '03b8b6d9-d19d-4377-8a6f-5208aef9eca7', 'ip_version': 4, 'cidr': '161.40.181.128/26', 'allocation_pools': [{'start': '161.40.181.130', 'end': '161.40.181.190'}], 'gateway_ip': '161.40.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.40.181.130', 'tags': [], 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21'}}
2024-10-18 21:41:49,551 - INFO - Created VN ctest-vn-08067996
2024-10-18 21:41:49,609 - DEBUG - VN ctest-vn-08067996 UUID is 03b8b6d9-d19d-4377-8a6f-5208aef9eca7
2024-10-18 21:41:49,931 - DEBUG - Response for create_network : {'network': {'id': 'd28988da-115b-4b21-ae86-eb481d988c40', 'name': 'ctest-vn-56508279', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-56508279'], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:41:50,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '56d6ee6c-941c-4683-bc66-3e461955d3fe', 'name': '', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'network_id': 'd28988da-115b-4b21-ae86-eb481d988c40', 'ip_version': 4, 'cidr': '95.210.254.192/26', 'allocation_pools': [{'start': '95.210.254.194', 'end': '95.210.254.254'}], 'gateway_ip': '95.210.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.210.254.194', 'tags': [], 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21'}}
2024-10-18 21:41:50,178 - INFO - Created VN ctest-vn-56508279
2024-10-18 21:41:50,233 - DEBUG - VN ctest-vn-56508279 UUID is d28988da-115b-4b21-ae86-eb481d988c40
2024-10-18 21:41:50,356 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996, 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-89343958:ctest-vn-56508279, 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-10-18 21:41:50,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03b8b6d9-d19d-4377-8a6f-5208aef9eca7', 'name': 'ctest-vn-08067996', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fed7966f-7c88-4b7f-93fb-7ff215bc6439'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-08067996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446']], 'subnet_ipam': [{'subnet_cidr': '161.40.181.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:41:50,923 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd28988da-115b-4b21-ae86-eb481d988c40', 'name': 'ctest-vn-56508279', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56d6ee6c-941c-4683-bc66-3e461955d3fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-56508279'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446']], 'subnet_ipam': [{'subnet_cidr': '95.210.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:41:51,093 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-18 21:41:51,392 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-18 21:41:51,423 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee
2024-10-18 21:41:51,438 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21
2024-10-18 21:41:51,528 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7
2024-10-18 21:41:51,543 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7
2024-10-18 21:41:51,560 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b
2024-10-18 21:41:51,569 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b
2024-10-18 21:41:51,578 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/992bede7-4d6b-4719-9918-a500ecb9d497
2024-10-18 21:41:51,585 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-18 21:41:51,586 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7
2024-10-18 21:41:51,600 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b
2024-10-18 21:41:51,621 - INFO - Verified VN network id 9 for VN 03b8b6d9-d19d-4377-8a6f-5208aef9eca7
2024-10-18 21:41:51,621 - INFO - Verifications in API Server for VN ctest-vn-08067996 passed
2024-10-18 21:41:51,621 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7
2024-10-18 21:41:51,636 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b
2024-10-18 21:41:51,645 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b
2024-10-18 21:41:51,654 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/992bede7-4d6b-4719-9918-a500ecb9d497
2024-10-18 21:41:51,668 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89343958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '268165224469447543', 'uuid-lslong': '9975281896897768615'}, 'enable': 'true', 'created': '2024-10-18T21:41:49', 'last-modified': '2024-10-18T21:41:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017786'}
2024-10-18 21:41:51,674 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-18 21:41:51,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08067996 passed
2024-10-18 21:41:51,675 - DEBUG - ====Verifying policy data for ctest-vn-08067996 in API_Server ======
2024-10-18 21:41:51,675 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-18 21:41:51,680 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee
2024-10-18 21:41:51,693 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21
2024-10-18 21:41:51,773 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7
2024-10-18 21:41:51,789 - DEBUG - ==>Verifying data for policy with id: 5ca2a011-ef95-447e-9cac-5eddf250cbbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446']
2024-10-18 21:41:51,789 - INFO - VN ctest-vn-08067996 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-18 21:41:51,789 - DEBUG - Verifying the vn in opserver
2024-10-18 21:41:51,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996 virtual network link through opserver 10.0.0.28
2024-10-18 21:41:51,789 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-10-18 21:41:52,082 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-10-18 21:41:52,141 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996?flat'}
2024-10-18 21:41:52,141 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996 is found in opserver
2024-10-18 21:41:52,152 - DEBUG - Do not have enough data to verify VN in agent
2024-10-18 21:41:52,157 - DEBUG - VRF ids for VN ctest-vn-08067996: {}
2024-10-18 21:41:52,157 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-18 21:41:52,163 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee
2024-10-18 21:41:52,177 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21
2024-10-18 21:41:52,261 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40
2024-10-18 21:41:52,279 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40
2024-10-18 21:41:52,292 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb
2024-10-18 21:41:52,301 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb
2024-10-18 21:41:52,309 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/eed7a7ca-0685-43f2-8a74-a2ed79a48ce6
2024-10-18 21:41:52,316 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-18 21:41:52,316 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40
2024-10-18 21:41:52,330 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb
2024-10-18 21:41:52,351 - INFO - Verified VN network id 10 for VN d28988da-115b-4b21-ae86-eb481d988c40
2024-10-18 21:41:52,351 - INFO - Verifications in API Server for VN ctest-vn-56508279 passed
2024-10-18 21:41:52,351 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40
2024-10-18 21:41:52,366 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb
2024-10-18 21:41:52,375 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb
2024-10-18 21:41:52,385 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/eed7a7ca-0685-43f2-8a74-a2ed79a48ce6
2024-10-18 21:41:52,398 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89343958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15170807289949670177', 'uuid-lslong': '12575997704445398080'}, 'enable': 'true', 'created': '2024-10-18T21:41:49', 'last-modified': '2024-10-18T21:41:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506640'}
2024-10-18 21:41:52,405 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-18 21:41:52,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56508279 passed
2024-10-18 21:41:52,405 - DEBUG - ====Verifying policy data for ctest-vn-56508279 in API_Server ======
2024-10-18 21:41:52,405 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-18 21:41:52,412 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee
2024-10-18 21:41:52,427 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21
2024-10-18 21:41:52,515 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40
2024-10-18 21:41:52,532 - DEBUG - ==>Verifying data for policy with id: 5ca2a011-ef95-447e-9cac-5eddf250cbbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446']
2024-10-18 21:41:52,532 - INFO - VN ctest-vn-56508279 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-18 21:41:52,532 - DEBUG - Verifying the vn in opserver
2024-10-18 21:41:52,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279 virtual network link through opserver 10.0.0.28
2024-10-18 21:41:52,532 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-10-18 21:41:52,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279?flat'}
2024-10-18 21:41:52,546 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279 is found in opserver
2024-10-18 21:41:52,558 - DEBUG - Do not have enough data to verify VN in agent
2024-10-18 21:41:52,564 - DEBUG - VRF ids for VN ctest-vn-56508279: {}
2024-10-18 21:41:52,618 - DEBUG - Services list from nova: [