2024-08-27 04:30:22,161 - INFO - Domain Default found not creating
2024-08-27 04:30:22,321 - INFO - Project ctest-TestBasicPolicy-35003210 not found, creating it
2024-08-27 04:30:22,780 - INFO - Created Project:ctest-TestBasicPolicy-35003210, ID : 56a5090e-90ea-4f20-b62e-d1e9aefd04f0
2024-08-27 04:30:24,247 - INFO - ================================================================================
2024-08-27 04:30:24,247 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 04:30:24,247 - 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-27 04:30:24,505 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.13': '0'}} with
2024-08-27 04:30:24,505 - INFO - Initial checks done. Running the testcase now
2024-08-27 04:30:24,505 - INFO -
2024-08-27 04:30:25,061 - DEBUG - Response for create_network : {'network': {'id': '0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4', 'name': 'ctest-vn-86270427', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-86270427'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:30:25,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '80a5b025-0dd3-4c9a-83bf-0371288e61b4', 'name': '', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'network_id': '0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4', 'ip_version': 4, 'cidr': '197.11.85.192/26', 'allocation_pools': [{'start': '197.11.85.194', 'end': '197.11.85.254'}], 'gateway_ip': '197.11.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.11.85.194', 'tags': [], 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0'}}
2024-08-27 04:30:25,235 - INFO - Created VN ctest-vn-86270427
2024-08-27 04:30:25,287 - DEBUG - VN ctest-vn-86270427 UUID is 0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4
2024-08-27 04:30:25,579 - DEBUG - Response for create_network : {'network': {'id': '07825e58-9f49-4cb2-bcd3-b742777262b7', 'name': 'ctest-vn-78559441', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-78559441'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:30:25,808 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bf680b7-622b-40d2-bb94-2389d9561607', 'name': '', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'network_id': '07825e58-9f49-4cb2-bcd3-b742777262b7', 'ip_version': 4, 'cidr': '70.65.79.64/26', 'allocation_pools': [{'start': '70.65.79.66', 'end': '70.65.79.126'}], 'gateway_ip': '70.65.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.65.79.66', 'tags': [], 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0'}}
2024-08-27 04:30:25,828 - INFO - Created VN ctest-vn-78559441
2024-08-27 04:30:25,878 - DEBUG - VN ctest-vn-78559441 UUID is 07825e58-9f49-4cb2-bcd3-b742777262b7
2024-08-27 04:30:25,989 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427, 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-35003210:ctest-vn-78559441, 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-27 04:30:26,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4', 'name': 'ctest-vn-86270427', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80a5b025-0dd3-4c9a-83bf-0371288e61b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-86270427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201']], 'subnet_ipam': [{'subnet_cidr': '197.11.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:30:26,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07825e58-9f49-4cb2-bcd3-b742777262b7', 'name': 'ctest-vn-78559441', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bf680b7-622b-40d2-bb94-2389d9561607'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-78559441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201']], 'subnet_ipam': [{'subnet_cidr': '70.65.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:30:26,674 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-27 04:30:26,981 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-27 04:30:27,013 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a
2024-08-27 04:30:27,026 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0
2024-08-27 04:30:27,105 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4
2024-08-27 04:30:27,118 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4
2024-08-27 04:30:27,127 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e
2024-08-27 04:30:27,136 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e
2024-08-27 04:30:27,145 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/2e73adc0-8d3c-468d-96d2-f31b6307eaab
2024-08-27 04:30:27,152 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:30:27,152 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4
2024-08-27 04:30:27,161 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e
2024-08-27 04:30:27,173 - INFO - Verified VN network id 9 for VN 0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4
2024-08-27 04:30:27,173 - INFO - Verifications in API Server for VN ctest-vn-86270427 passed
2024-08-27 04:30:27,173 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4
2024-08-27 04:30:27,182 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e
2024-08-27 04:30:27,190 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e
2024-08-27 04:30:27,197 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/2e73adc0-8d3c-468d-96d2-f31b6307eaab
2024-08-27 04:30:27,210 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35003210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '767198207656018273', 'uuid-lslong': '12549829852076841652'}, 'enable': 'true', 'created': '2024-08-27T04:30:25', 'last-modified': '2024-08-27T04:30:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957005'}
2024-08-27 04:30:27,218 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:30:27,218 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86270427 passed
2024-08-27 04:30:27,218 - DEBUG - ====Verifying policy data for ctest-vn-86270427 in API_Server ======
2024-08-27 04:30:27,218 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-27 04:30:27,225 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a
2024-08-27 04:30:27,239 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0
2024-08-27 04:30:27,310 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4
2024-08-27 04:30:27,319 - DEBUG - ==>Verifying data for policy with id: 10d690f6-0a16-47e8-bc75-b67d5295aeb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201']
2024-08-27 04:30:27,319 - INFO - VN ctest-vn-86270427 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:30:27,319 - DEBUG - Verifying the vn in opserver
2024-08-27 04:30:27,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427 virtual network link through opserver 10.0.0.36
2024-08-27 04:30:27,319 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-27 04:30:27,614 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-27 04:30:27,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427?flat'}
2024-08-27 04:30:27,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427 is found in opserver
2024-08-27 04:30:27,689 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:30:27,695 - DEBUG - VRF ids for VN ctest-vn-86270427: {}
2024-08-27 04:30:27,695 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-27 04:30:27,700 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a
2024-08-27 04:30:27,712 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0
2024-08-27 04:30:27,782 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7
2024-08-27 04:30:27,793 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7
2024-08-27 04:30:27,801 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f
2024-08-27 04:30:27,808 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f
2024-08-27 04:30:27,815 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/3ad25b7d-baeb-4d13-b6cc-02de9c5e7b96
2024-08-27 04:30:27,822 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:30:27,822 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7
2024-08-27 04:30:27,831 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f
2024-08-27 04:30:27,845 - INFO - Verified VN network id 10 for VN 07825e58-9f49-4cb2-bcd3-b742777262b7
2024-08-27 04:30:27,846 - INFO - Verifications in API Server for VN ctest-vn-78559441 passed
2024-08-27 04:30:27,846 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7
2024-08-27 04:30:27,855 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f
2024-08-27 04:30:27,861 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f
2024-08-27 04:30:27,868 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/3ad25b7d-baeb-4d13-b6cc-02de9c5e7b96
2024-08-27 04:30:27,880 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35003210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '541098639960394930', 'uuid-lslong': '13606420395316110007'}, 'enable': 'true', 'created': '2024-08-27T04:30:25', 'last-modified': '2024-08-27T04:30:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.374964'}
2024-08-27 04:30:27,886 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:30:27,886 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78559441 passed
2024-08-27 04:30:27,886 - DEBUG - ====Verifying policy data for ctest-vn-78559441 in API_Server ======
2024-08-27 04:30:27,886 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-27 04:30:27,893 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a
2024-08-27 04:30:27,906 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0
2024-08-27 04:30:27,975 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7
2024-08-27 04:30:27,983 - DEBUG - ==>Verifying data for policy with id: 10d690f6-0a16-47e8-bc75-b67d5295aeb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201']
2024-08-27 04:30:27,983 - INFO - VN ctest-vn-78559441 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:30:27,983 - DEBUG - Verifying the vn in opserver
2024-08-27 04:30:27,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441 virtual network link through opserver 10.0.0.36
2024-08-27 04:30:27,983 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-27 04:30:27,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441?flat'}
2024-08-27 04:30:27,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441 is found in opserver
2024-08-27 04:30:28,005 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:30:28,009 - DEBUG - VRF ids for VN ctest-vn-78559441: {}
2024-08-27 04:30:28,065 - DEBUG - Services list from nova: [